Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-15315

Changing the contextURL in IDM does not update request being sent to SalesForce

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 6.5.0.3, 6.5.0.4
    • Fix Version/s: None
    • Component/s: Module - Web UI
    • Labels:
    • Environment:
      Customer enviroment 6.5.0.3
    • Target Version/s:
    • Zendesk ID:
      52325

      Description

      Steps to recreate:

       

      1) Change contextURL in ui.context-admin.json to /abc/admin 

      2) Restart and verify the changes went through in IDM

      3). go to create a new connector and select Salesforce

      4) the contextURL change will not be picked up by SalesForce connector view UI

      5) You have to make the following change to SalesforceTypeView.js

      go to path to openidm/ui/admin/default/org/forgerock/openidm/ui/admin/connector/oauth

      change the callbackURL to this:

       

      "callbackURL" : window.location.protocol+"//"window.location.host  window.location.pathname + "oauth.html"

       

      Restart IDM and the callbackURL will now show http://localhost:8080/abc/admin/oauth.html

       

      The problem now is that even with this change, when we make a call to Salesforce the callbackURL is not being passed.  We see this(URLs have been changed to hide private info):

      http://my.salesforce.com/services/oauth2/authorize?scope=id%20api%20refresh_token&state=provisioner.openicf_SalesforceabcUAT&redirect_uri=http://localhost:8080/admin/oauth.html&response_type=code&client_id=

       

      instead of this:

       

      http://my.salesforce.com/services/oauth2/authorize?scope=id%20api%20refresh_token&state=provisioner.openicf_SalesforceabcUAT&redirect_uri=http://localhost:8080*/abc/*admin/oauth.html&response_type=code&client_id=

       

       Spoke to the ICF team and it was stated that OAuth needs to be directed where specified.  The connector doesn't do anything specific to that.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jason.browne Jason Browne
                Reporter:
                jesse.ontiveros Jesse Ontiveros
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: