Skip to main content
Hi All,

We are currently working on OAuth 2.0 User Agent flow where our Mobile App connects with Salesforce through a Connected App.

Although most of the time, user gets authenticated and authorized accurately. There are some instances where we see OAuth Error page (see the below image) instead of redirecting the User to appropriate redirection page.

We haven't been able to identify the cause for this behavior but we do know that the User trying to authenticate and authorize himself can be

  • New User
  • Existing User
  • Provide Corrector Incorrect credentails.

Any one has come across this behavior and has been able to idenitify the root cause ?

OAuth Error - You didn't complete the approval process before it expired. Please try again
20 个回答
  1. 2016年11月16日 21:35
    Hi @Avery,

    Not sure if it addresses your issue but we were able to find the root cause recently.

     We observed that when user tries to access the OAuth URL (\services\oauth2\authorize) on the client machine (Browser or Mobile App), Salesforce presents a new URL (setup/secur/RemoteAccessAuthorizationPage.apexp?).

    It was found that this new URL has an session Id and expires after new minutes of idle time (approx. 10 minutes, not very sure). 

    When some one tries to Login after the session Id is expired, system throws the OAuth error as can be seen in my previous post.
0/9000