You need to sign in to do that
Don't have an account?
Deepak Hanumantha Andeli
OAuth Error - You didn't complete the approval process before it expired. Please try again
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
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.
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.
All Answers
My co-worker just experienced this issue yesterday. We were unable to solve the issue but found that it has something to do with Chrome. She was able to log into her salesforce account on IE with no issue. If anyone is able to identify the root of this issue or provide a fix please let me know.
Thank you
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.
Thank you for the tip. I found that clearing the cache worked. The user was using a long URL that was trying to redirect the page instead of https://login.salesforce.com/.
I created a connected app and intergrate with a mobile app, This app allow to create a community user and sometime this issue happen
and don't know how to fix.
Do you know where I can increase session timeout. I tried on connected app, profile, session setting but they not affect.
Regard
After discussions with Salesforce Support we understood that this session time out period was not reconfigurable. Hence we had to manage this time out through a client side timer logic.
But can you show me more specific. As I a Salesforce developer and I don't know how to manage time out at client side (I think Mobile side).
Please show me the example.
Regard
I think this change is on Mobile SDK at Mobile site, isn't it.
Generally what's possible is write a javascript code that calls setInterval method every 15 minutes (session timeout).
If the User does not login before the session times out then reload the URL so that the session is recreated.
Cheers,
Deepak
Could I know, where the session timeout was set? I tried on user profile, connected app, session managerment, but they are not work.
Regard
Do you have any official documment mention to this issue. I need to show this for the team Lead.
Many thank.
You didn't complete the approval process before it expired. Please try again."
She was using the desktop app fine and then one day, all the sudden... she wasn't "online" and there was nothing she could do to get the green button to go on and make her available. I told her to log out and log back in, which she did however she forgot her password, so she re-set it. when she went back into the desktop app to use her new password, that's when she got this message. I am the system admin and have checked her user page and it shows she had a successful online loging but no chatter desktop activity since she was last able to use it. PLEASE HELP!
Seems like the view that was loaded (I mean the login page) had an expired token. If it can be uninstalled then try uninstalling and re-installing the same.
Alternatively suggest you to upgrade to the latest version.
If none of them is possible / works, seek Salesforce Support help.
Cheers,
Deepak
"We can't authorize you because of an OAuth error. For more information, contact your Salesforce administrator. You didn't complete the approval process before it expired. Please try again."
I was able to log in as MYSELF on her phone, so long story short, what fixed the dilemma for her was that I assigned the Profile she was attached to the "API Enabled" setting. Now she can log in with no problem.