-
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
Multiple providers per user #594
Comments
I'm interested in doing the same thing. Any update on this? |
I ended up not using this gem. Implemented tokens myself, combine the following two gists: |
Thanks for your feedback. My app is already configured with devise token auth & ng token auth (using only the email provider at the moment) and I'm not sure yet if I want to switch to something else... It's a shame because I'd really like to be able to connect with other providers and I can't figure how to get this working for now... |
Well you could override some of this gems stuff to get things work. If you don't mind having unused columns "uid" and "provider" in your user model and just use something else than its mostly controllers. If you mind (i did) and you want to remove the uid and provider columns, then you have to override alot of stuff because both are kinda hardcoded into the gem. But it's possible. Still i think doing it yourself is the better solution - this gem does not really do much. |
Yep I know, I customized my User model and I had to override several DeviseAuthToken controller methods to get it working. And even with this, I only managed to get one provider to work at a time. You probably right, I should do it myself but I think I'm too lazy to change my entire auth system (rails api with DeviseAuthToken and the frontend with NgAuthToken)... |
I am also looking into doing this, and it seems like a bit of work, but allowing my users to log in using multiple providers is a feature I really want. Note: I only have OAuth login functionality and no email/password option. What I have added:
From what I read, I need to override the following:
After I have overriden these controllers, I should be able to remove the The An option to solve this, would be to override the Am I missing something here? |
I am currently trying to implement the same, but with email/password option. Wondering if there are any updates. @depl0y: Did you map the I found this discussion on the topic. Looks like we are implementing "Plan B" here. |
Hi there @cars10 and @KRaymundus , 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. |
So i need users to be able to login with facebook, google, email and some other providers - and they have to land in the same account. With the default config of devise_token_auth it will create a new user for each provider and that sucks. I have an extra model called accounts that belongs to my user model where i manage these accounts.
To make that work i have to override like 500 things in devise_token_auth because the provider & uid columns are hardcoded in alot of places and cannot be removed per default. (obviously i do not need them because i handle that in a seperate model).
Is there a better way to solve that problem?
Edit: i am already thinking about a fork to solve that problem at the root.
The text was updated successfully, but these errors were encountered: