OAuth - Invalid hosted domain

Hi,

All of a sudden, we are seeing the following error in the logs
(google_oauth2) Authentication failure! invalid_credentials: OmniAuth::Strategies::OAuth2::CallbackError, invalid_hd | Invalid Hosted Domain

Our users trying to log in with Google OAuth see this:

I have changed the hd setting recently to * and this worked for a while.
At the moment, nothing I change this parameter to (empty, * and our own domain) will solve my log in troubles.

Note: a restart of the server seems to have fixed this; no idea what happened.

Super wild guess, could be an issue with your system clock. Are you using ntpd to keep it up-to-date?

1 Like

Yes, ntpd is running.

BTW the server was not restarted, just the Discourse unicorn processes.

1 Like

Right, then my guess doesn’t make sense :slight_smile: