Skip to content
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

Custom identifier resolver #4207

Open
5 tasks done
BierDav opened this issue Nov 12, 2024 · 0 comments
Open
5 tasks done

Custom identifier resolver #4207

BierDav opened this issue Nov 12, 2024 · 0 comments
Labels
feat New feature or request.

Comments

@BierDav
Copy link

BierDav commented Nov 12, 2024

Preflight checklist

Ory Network Project

No response

Describe your problem

We have special requirements for our user identifiers which are just random generated activation codes which might exist before the user even is registered. It is quite impractical to store them in the traits, because this would require a quite complex setup to restrict the user from not changing these traits.

So what we actually want to achieve is that the user enters an identifier which is checked by our own system which user is responsible for it and then start the login process using this user.

Describe your ideal solution

A webhook that resolves custom identifiers

Workarounds or alternatives

A workaround to achieve somewhat similar would be a toogle which adds the userid to the registration, login and recovery flows and before we submit one of those flows we call an endpoint which resolves the identifier to the correct user or if not found to a random uuid. This prevents attackers from doing a Account Enumeration Attack like in #133

Adding userid to the flows is no security risk, because it is far more difficult to guess a uuid than a simple email, which might have been already exposed by a data breach.

Version

1.3.1

Additional Context

No response

@BierDav BierDav added the feat New feature or request. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

1 participant