You need to sign in to do that
Don't have an account?
OAuth flow returns "immediate_unsuccessful" even when user logged in and granted permission
Hello there,
I have a OAuth2 web flow. I set "immediate" to true when requesting the authroization code, in order to probe whether user is logged in and has already granted my access permission. But the callback always return "immediate_unsuccessful", even user is logged in and granted permission already.When I set the "immediate" back to "false", the flow went through without login prompting which proves everything else is working. One observation is if I install theassociated connected app, the problem is gone. I am confused cause my impression is connected app is only to provide client id and secret with some admin policy setting.
Anybody could educate me if there are any correlations between connected-app installation and immediate flag? Or there is some prerequisites to use "immediate" flag beyond the fact user has logged in and user has granted permission?
I am stuck in this issue for days, help greatly appreciated!
jason
There shouldn't be any correlation between the two. Could you post your Authorization URL you're using? Feel free to delete your client_id if you'd like
Here is my authorization URL:
https://login.salesforce.com/services/oauth2/authorize?response_type=code&client_id=myclientid&redirect_uri=https://salesforce.bizible.com/OAuth2?identityonly=true&immediate=true&state=someOfJsonSerializedState