Hi support team, for some reason I keep getting the same error when I am setting up my OAuth2 for Google. When I go to the final step, I get an error saying “Authorization url link have been expired.”
Please refer to the screenshots below for your reference. I created a test login page as seen in the first screenshot.
I watched the turorial video, the backenedless docs, and there was a similar post, however I am not able to figure out what I am doing wrong here.
Hi @Nasser_Othman ,
Do you perform all steps simultaneously during 10 minutes window or they are separated in time?
Regards, Andriy
Hi, yes the whole process takes no more than 30 seconds.
This is my test google login code, for your reference.
Hi, I solved it!
For anyone reading this, this is how I solved it.
You need to use /api/users/oauth/googleplus/request_url to let Backendless handle:
- URL generation
- token management
- user session creation
- This avoids the authorization url expired issues and ensures the redirect/callback is valid and fresh.
- The “permissions” field maps to Google scopes (profile email)
- “fieldsMapping” maps Google profile data to your Users table.
2 Likes