-
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
Facebook login - Redirect issue #166
Comments
@c0mrade - what do your routes look like? |
This is the output of
And the routes.rb :
|
@c0mrade - what happens when you try to use the nested version of |
@lynndylanhurley I had issues before with this(nested version of mount..), but the workaround got to work and I just continued with that. Not able to find it now, not sure if you recall or not I've opened a issue for that case. |
Oh right, I remember now. The routing system was refactored to support namespacing and scoping, and I'm wondering if the refactor may have broken the previous method of mounting the routes. Can you try using the nested version and see if it resolves the issue? |
hey @lynndylanhurley good catch. Tried this :
The login with username/password works now. However if I try to login with facebook I get this error :
In this bit :
The log :
|
@lynndylanhurley I just debugged this bit and here is the problem :)
so the |
Oh interesting. That does look like a bug. It's strange though, because the test case is almost identical to yours and the tests are all passing. What version of Devise do you have installed? |
Yes indeed very strange. Devise version is I guess something similar is in #119 |
The question is, why does the Devise mapping represent the |
@lynndylanhurley Actually its represented it as
When routes are not nested :
Then the devise mappings use |
@c0mrade - thanks for your patience with this issue. I'll dig in tomorrow morning and see if I can replicate the behavior. |
no problem, thank you for developing the wonderful gems. I just got back to developing my app, first time creating angular app. Surely will be fun. thanks for your time, let me know if you want me to try something else |
Hello! Any updates on this one? I have the same problem with Devise.mappings being :api_v1_user |
Having the same problem, with the namescope in routes or without it. Rails 5 and the latest code in master. |
Hi there @c0mrade , In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error! If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it. Hope all is well. |
hey @zachfeldman no, not having problems anymore, this is good to close, it's an old issue. |
guys, some response about the problem? i 'm very confused about how a setting a omniauth provider with this gem. Someone can help me? |
Hi @gustavosantiago this is a closed issue. If you are having an issue, please open a new one and follow the issue template. We'll try to help you troubleshoot there - keep in mind that this is a volunteer run project. |
Hello,
I've tried to implement a facebook login and first started by adding a button :
And have my app configured like so :
Have my onmniauth.rb initializer setup like so :
And Facebook configured like I normally do, with app turn on for everyone to see with right key/secret, domain etc.
So when I click the Facebook button I pasted html for previously, the new tab opens (tested in chrome) and I'm prompted for facebook login.
I enter the facebook credentials (I wasn't logged in before), and I get redirected to this url:
A log snippet :
Which lead me back to DeviseTokenAuth::OmniauthCallbacksController#redirect_callbacks . To be more precise this part :
Which is ok, but since the facebook login opened in a new tab, and there was no application running here, the redirect was wrong, so I changed it to this (might not be the best thing) :
Which then redirects me to (lvh.me is localhost):
Which then unveils the new issue which should be treated as a separate issue. I'll just mention what it is (from the log) :
But assuming that my model has nickname, how would I got about solving the redirect issue described above? I'm using the latest version just in case I'm missing something
devise_token_auth (~> 0.1.32.beta5)
The text was updated successfully, but these errors were encountered: