You need to sign in to do that
Don't have an account?
Sonal4J
Unable to fetch authorization code from Summer 15 Org
- Created a connected app on the hub org
- In the connected app Enabled OAuth Settings
- Provided full access and Perform requests on your behalf at any time (refresh_token, offline_access) oauth scope.
- provided a callback URL to a vf page
- Performed authoratization to get the summer 15 org authorization code.
- Pop up came to enter the target org's username and password.
- once entered , The connected app requested permission.
- Click allow. Instead of redirecting to the source org it tried to access the the redirect page on the target org.
- This issue appears when the target org is on summer 15. It worked fine with spring 15
- If source and target are on Summer 15 it does not work. While when source and target are on spring 15 it works
When making callback, remember to use the instance such that Salesforce knows which session to redirect the page to.
Hi Sonam,
I had figured out that the issue appears in Summer 15 when I use generic callback url . For eg - https://login.salesforce.com/apex/vfpage_name. It works fine when I use instance name. For eg:- https://na24.visual.force.com/apex/vfpage_name.
But using a generic URL worked till spring 15. Is this something that salesforce has stopped supporting from summer 15? or is this a bug at salesforce end?
When I used to use generic URL with spring 15 I had to login twice. 1st time on my target org and 2nd time back on my source org.