Use /api/v2/users to find matching emails#119
Use /api/v2/users to find matching emails#119nicosabena wants to merge 1 commit intoauth0-extensions:masterfrom
Conversation
Switches back to GET /api/v2/users to find matching email addresses so that the search is case-insensitive.
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
|
This is still relevant and would help to mitigate the described corner cases. |
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
|
We are having issues with linking account when the emails are registered with different lower/upper cases, for example, we have a b.simon@mail.com (username-password) and a B.Simon@mail.com (waad user) they won't link together because of the capital letters. It would be nice to progress with this PR. |
|
According to https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint, the If you think this is problematic for this particular use case, please consider upvoting: https://community.auth0.com/t/add-case-insensitive-option-for-user-by-email-search/93303 |
|
There is actually a bug in here. You will also need to utilize the below code here: |
Switches back to GET /api/v2/users to find matching email addresses so that the search is case-insensitive.
✏️ Changes
Currently, the extension (both in the rules and in the back end) searches for identities with the same email address with the
GET /api/v2/users-by-emailendpoint. While this endpoint is very efficient, the search it performs is case sensitive. This is a problem for some enterprise identity providers that provide the email address in a capitalized form (e.g.John.Doe@acme.cominstead ofjohn.doe@acme.com).With PR switches to the
GET /api/v2/usersendpoint, with aq=email:john.doe@acme.comlike query string. This search is case insensitive, allowing matches where the casing is different. The search needs to be changed in two pieces:The slight performance hit from not using
/users-by-emailshould be negligent, since the search is only done on the first login of an identity.🔗 References
IUM-1301
🎯 Testing
🚫 This change has been tested in a Webtask
🚫 This change has unit test coverage
🚫 This change has integration test coverage
🚫 This change has been tested for performance
🚀 Deployment
✅ This can be deployed any time
🎡 Rollout
🔥 Rollback
📄 Procedure
🖥 Appliance