by shrink · 2y ago · 0 comments
Can you share a copy of your OAuth consent screen settings? Maybe there's an option influencing this behaviour.
edit: we do not use Auth0, our Google OAuth connection is built in house.
edit edit: comparing the URLs, our flow redirects from `https://accounts.google.com/signin/oauth/id` to `https://accounts.google.com/signin/oauth/consent` after clicking "continue" whereas yours remains on `https://accounts.google.com/signin/oauth/id` before redirecting to your app so there's definitely something different in the behaviour.
I looked through the HAR files I've captured comparing my company's app to Termly. After clicking "Continue", in both cases there's a redirect to a URL of the form https://accounts.google.com/signin/oauth/consent?as=redacted.... For my company's app, hitting that URL results in another redirect to my Auth0 tenant, whereas for Termly, hitting that URL results in HTML showing the loading indicator (no immediate redirect).
Why the difference? As you said, maybe it's something in the OAuth consent screen configuration (though there are no options I see that could explain it). Maybe it has to do with the age of the account.
Curiously, in all other apps I tested and mentioned, I don't see the screen changing to "loading" on them. Do you?
Meantime, I'm checking the OAuth consent screen settings to see if there's anything relevant.
If the "Login with Google" button opens in a new tab and the Google OAuth flow completes in the second tab, then the process will have the "loading" screen after clicking "continue" because "loading" indicates Google OAuth is communicating back to the original tab. If the "Login with Google" button opens in the same tab, clicking "continue" triggers a 302 redirect to your callback URL of which the loading speed is controlled by your website.
The immediate workaround is to switch to opening the Google OAuth login page in a new window.
edit: "Sign In with Google for Web" appears to be what provides the new tab for login functionality https://developers.google.com/identity/gsi/web/guides/overvi...
edit edit: that's not to say you're wrong, Google should definitely fix this but "Sign In with Google for Web" is not impacted in case anyone needs an immediate fix for their own apps, they can switch to "Sign In with Google for Web" (a difference user interface for OAuth).
ChatGPT, Retool, Ramp, PostHog and HubSpot have the behaviour you've described.
I checked my browser history for `oauth/consent` and found the following examples with the loading behaviour:
HelpScout, Google Cloud, Termly.io