-
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
Can't get omniauth to work (error in redirect_callbacks) #139
Comments
What do your routes look like? |
This is my rails routes file. Really appreciate your help!
Note that I explicitly repeated the get redirect_callbacks route. Without that, for some reason, the route gets listed after the angular_app route which means it gets routed into angular instead of being handled by rails. |
This may be the issue: get '/omniauth/:provider/callback', to: 'devise_token_auth/omniauth_callbacks#redirect_callbacks' The route needs to be mounted within a I would recommend finding a more precise way to do this: get '*path', to: 'angular_app#index' so as to avoid route collisions. |
Thanks @lynndylanhurley! That does it. I changed to:
to avoid the omniauth callbacks collision and that seems to do it :) |
Hi, I've been trying to set up devise_token_auth and can't figure out what's wrong. I have a simple button for signing in with Google. When I click the button and sign in, I get this error. Does anyone know why?
Thanks! Also, just as an fyi, I didn't separately install devise (not sure if that's necessary); I just followed the directions from the README. It seems like Devise.mappings is nil, but not sure how I can fix that...
The text was updated successfully, but these errors were encountered: