+ Start a Discussion
AgrajAgraj 

OAuth2.0 WebServer flow Approval screen not coming from second time onwards

I'm using OAuth2.0 Web-Server flow to connect with Salesforce. Everything is working fine except when I try to re-connect the client with Salesforce, the approval screen is not shown again.

 

As per the documentation immediate flag's default value is false and it should show the approval screen by default every time you try to connect.

Only when the client has been approved once and the immediate flag is set to true, the approval step is skipped and salesforce redirects back to callback url with authorization code, but in my case the approval screen is shown only for the first time when the client connection is made.

 

Note that I'm still getting a valid value of "authorization_code" which can used to get an access and refresh token.

Any help is appreciated.