-
-
Notifications
You must be signed in to change notification settings - Fork 970
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
request.env['omniauth.auth'] is nil in Omniauth Callback #1057
Comments
i also got the same error, is there any update? |
I feel like this is related to #1061, since the template you're using uses Rails 7 |
@alec-c4 have you found a fix? im having the same issue |
Since omniauth set omniauth.auth by detect path in rack middleware, you can find out why omniauth.auth is empty by this :
|
When I Changed Route ,I Got this issue |
@seadfeng I am the same way. Have you found a solution yet? |
Configuration
omniauth-google-oauth2, omniauth-facebook, omniauth-vkontakte
3.0.2
ruby on rails 6.1.4.1
macOS
Expected Behavior
It should allow to login using Google, Facebook, and Vk
Actual Behavior
Exception
NoMethodError undefined method `provider' for nil:NilClass
and request.env['omniauth.auth'] is nil in OmniauthCallbackControllerSteps to Reproduce
Create app from any rails template https://github.com/alec-c4/kickstart for example
add creadentials
and try to login using Google
The text was updated successfully, but these errors were encountered: