This topic has 2 replies, 2 voices, and was last updated 3 years ago by buddhadeb.das.

  • Author
    Posts
  • #20900
     buddhadeb.das
    Participant

    Hi All,

    I am trying to call an external REST using a javascript on update of a managed object.

    ——————————————————————————————————————–
    var uri;
    var para = new Object();
    var header = { “Authorization”: “xxxxxxxxxxxxxxxxxxxxxxxxxxx”, “If-Match”: “*”, “Content-Type”: “application/json” };
    uri = “https://xxxxxxs.net/yyy/xxxxxx2?api-version=2016-11-14”;
    var bodypart = { “aaaa”: “bbbb”,”cccc”: “dddd”} ;
    var bodyJSON = JSON.stringify(bodypart);

    para.url= uri;
    para.methord=”PUT”;
    para.headers=header;
    para.body=bodyJSON;
    response=openidm.action(“external/rest”, “call”, para);
    ——————————————————————————————————————–

    I am getting a bad request exception when i try to update the managed object. Request you to kindly provide pointers on how to debug this further.Please let me know in case you need any input from me.

    any pointers will be helpful.

    #20901

    You are running IDM 5.5? In earlier versions (at least including 4.5) REST calls could only be performed using http but not using https. forgerock suggested using stunnel.
    I’m not sure https is supported in 5.5, perhaps you should try http and stunnel instead?

    #20908
     buddhadeb.das
    Participant

    Hi Patrick,

    Thanks for your response.I am running IDM 5.5 on my system, does it support https ?In the mean while i will try exploring the use of stunnel and http. I don’t see much in the openidm logs so not very sure if this is the only issue.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

©2021 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?