-
Notifications
You must be signed in to change notification settings - Fork 151
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
Rules to link accounts by email are case-sensitive #208
Comments
I was caught out by this over the past week and even Auth0 support seemed flummoxed by this and unaware that the email address used to add admins to a tenant was case sensitive. Some info: http://www.faqs.org/rfcs/rfc821.html
However...
And as always Stack Overflow to the rescue: So it appears it depends on the RFC you are implementing. RFC-5321 is the latest (RFC-7504 is only an ‘update’ to it) so I'd suggest this should be the one to follow - which suggests case insensitivity should be used. Discussing this with other (seasoned) developers - 99% of devs I've spoken to were unaware that email addresses can be case sensitive. And in practice most systems implementing SMTP do so using case insensitive implementation. Suggested/Possible Solutions: Either change this to be case insensitive as suggested in the most recent RFC ... or... At the very least the fields/processes/APIs used to register and to add admins to a tenant should state the email address is case sensitive. And error message(s) displayed should detail this fact also. Thanks. |
Just to add to this - the existing error message I was getting when attempting to accept an invitation states:
... which is exactly what I did! In Auth0 the invite was created using: I received the email invite in my inbox for: So the error message above is in fact incorrect (or at the very least misleading) for around 90% of use cases where case sensitivity is to blame due to the fact that most email servers are set up to be case insensitive? Thanks. |
@alanc10n Thanks for raising this issue as I wondered if I was going mad but evidently wasn't the only one this was effecting - which was good to know! 👍 It might be worth checking this again just fyi. I reported this issue to customer support who have since informed me that the dev team had pushed out a fix for this and that user registration is now case insensitive. I've not had chance to check myself yet but thought I'd pass on the message in case it's blocking your work/endeavours! Support also mentioned they'll pass on this issue for the dev team to respond to. Thanks again. |
Just spend hours trying to debug our merging process and realized that this was the issue. The user signed up via Google with the email Does anyone have a good solution how to resolve this? From the last comment it seems like this should have been fixed, but the we had this problem yesterday. |
Auth0 knew about this issue since 2019 and hasn't been fixed yet? For Christ's sake! We just lost a customer because of a nightmare scenario involving this bug. Please make it right! We just got the worst possible review from a customer who has a second account created because of a capitalization difference which too a week of back and forth for our customer support and engineers to figure out.
|
Hi everyone. I had the same issue using /users-by-email endpoint because is case-sensitive (it doesn't make sense). I found the https://{domain}/api/v2/users endpoint allows you to search by different attributes such as email. So doing the following query I was able to find the users with case-insensitive string.
Please let me know if this works for you. |
Yes, that search is case-insensitive, but it's also not immediately consistent. Auth0 explicitly recommends using users-by-email for searching during authentication and account-linking, which is why this is a mess. |
I've encountered an issue in which a user signs up with multiple connections associated with the same email address and the automatic account linking rule fails to link them. Eventually I tracked this down to the fact that the
users-by-email
endpoint performs a case-sensitive search, which is very surprising. The user signed up for an email/password account as[email protected]
, but their Google account has[email protected]
as the associated email address.In practice, email addresses are treated in a case-insensitive manner, and the Auth0 web console performs case-insensitive search for email addresses. It seems like anyone using these rules to link accounts with matching emails would want it handle differing case, since some providers will report differing case for a given email address (i.e. not everyone normalizes addresses to lower-case).
The text was updated successfully, but these errors were encountered: