-
Notifications
You must be signed in to change notification settings - Fork 229
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
How would sorcery handle emails that have "." in different providers #164
Comments
I personally don't think that Sorcery should do anything about it. Based on Google support post (https://support.google.com/mail/answer/7436150?hl=en), the intention is to reduce the chance that someone mistypes your email address (which is absurd, in my opinion :) ). Now, when talking about Sorcery, we are talking about authentication – user using its own email address to authenticate with the app. I don't see how it would help to be able to omit dots. If we are talking about using Google as oauth provider, it would make sense that they would always return the primary email address (with or without dots). In other words, it should always be the same (not sure if this is true, but seems logical). |
I don't think I understand the ask here. @nsantiago2719, what behavior are you wanting changed? |
@mladenilic, the thing I want to emphasize here is that when a user tries to login using Google oauth provider it is possible that it'll create a new account. For example I already registered a Which goes to my suggestion that on |
One thing about In your use case, even if emails you used during registration and one that google returns are identical, oAuth callback action will still need to handle this, since Even if we disregard all this, I feel like Sorcery should stay as simple as possible and just leave it to the developer using it to decide weather they care about Google email policies. For the argument's sake, you should keep in mind that if you want to support Google emails, it's not just |
This is my current stance as well. This ultimately sounds like an application specific issue, and should be handled as such. @nsantiago2719, this should be doable using custom validation on the user/authentication, and/or by using the |
Thanks for your suggestions. I'll be closing this issue now. |
Microsoft, Yahoo, and Apple treat periods as separate emails, while Google and Facebook treat them as the same.
Example:
Google and Facebook's perspective
[email protected] == [email protected]
Other providers
[email protected] != [email protected]
PS. Sorry @athix it has been more than a year and I haven't made a ticket regarding this issue.
#32 (comment)
The text was updated successfully, but these errors were encountered: