-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth failure callback error with Google provider #898
Comments
I notice that this problem is not related to "more than one hosted domain". |
When you login with gmail the hosted domain comes back empty. Just use the following and it should work:
|
It works, but it actually allows any domain. |
Workaround posted, closing for now. @micred if your last comment is still an issue please reopen or open a new issue! |
Hi, thanks for creating this great gem.
I configured Google OAuth specifying allowed domains:
All works well if I try to login with [email protected] or [email protected].
Anyway if I try to login with [email protected] I get "Authentication failure" (as expected since gmail.com is not in the whitelist) but this raise an exception:
Gems version:
devise (4.2.1) (but tried also with 4.3.0)
devise_token_auth (0.1.42)
oauth2 (1.3.1)
omniauth (1.6.1)
omniauth-google-oauth2 (0.4.1)
omniauth-oauth2 (1.4.0)
Support for more than one hosted domain is handled by:
zquestz/omniauth-google-oauth2@1e6bb96
The text was updated successfully, but these errors were encountered: