[OPENIDM-15315] Changing the contextURL in IDM does not update request being sent to SalesForce Created: 24/Aug/20  Updated: 26/Oct/20  Resolved: 26/Oct/20

Status: Closed
Project: OpenIDM
Component/s: Module - Web UI
Affects Version/s: 6.5.0.3, 6.5.0.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Jesse Ontiveros Assignee: Jason Browne [X] (Inactive)
Resolution: Duplicate Votes: 0
Labels: Customer, UI
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Customer enviroment 6.5.0.3


Issue Links:
Duplicate
duplicates OPENIDM-15584 Using SalesForce connector and changi... Closed
Relates
is related to OPENIDM-15223 Base Connector Details not changing w... Resolved
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.

 


Generated at Sun May 09 08:01:23 UTC 2021 using Jira 8.16.0#816000-sha1:a455b91378454416b49bbc88d03e653cb9815ed5.