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

  • Author
  • #20900

    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 = “”;
    var bodypart = { “aaaa”: “bbbb”,”cccc”: “dddd”} ;
    var bodyJSON = JSON.stringify(bodypart);

    para.url= uri;
    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.


    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?


    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.


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?