-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Question, is it possible to allow a single user to authenticate via multiple providers? #174
Comments
Yeah, I'm planning to resolve it with #115. More in:
It's only safe if you can trust that the email from the provider has been verified. See: #79 (comment) There're also some examples in #18 for how to circumvent the logic.
I always appreciate any help! In this case I think something like #115 will solve it. It makes sense to me that before you can add a new auth method, you must be authenticated. So displaying a page that requires user auth before linking a new provider would be a good way to deal with. Depending on the current auth methods that user has, the page could either ask for the current password, or that the user has to sign in with an existing provider first. There might be some information leak here I'll have to look into. And as a FYI now that I'm talking about information leak, My current idea for how to implement #115 would be to differentiate between invalid and taken user id and redirect according in the authorization controller. I would prefer if we could just redirect the user to the Pow sign in page, with a flash message, maybe prepopulated user id field, and a |
Yes, this all makes sense and sounds like a much more safe approach than just trusting that the accounts on the two separate providers are linked to the same user. Thanks for the background, I should have done a more thorough job of looking through the other open issues. Feel free to close this one and I’ll watch the older / original issues. |
Scenario, building an app and adding standard pow authentication, then later I add facebook and google auth via pow_assent, now users who forget their password or don't realize that they're already signed up try to register using facebook or google auth and get an error that the email has already been taken.
Are there concerns with associating a user with mutliple providers? I'm planning to use email confirmation as well, so it seems relatively safe but I couldn't find a documented way to configure this so thought I would ask. If it helps, I can create a PR to add to docs if this is already possible but hard to figure out.
Thanks!
The text was updated successfully, but these errors were encountered: