-
Notifications
You must be signed in to change notification settings - Fork 977
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
Add "after identifer input" hooks #4221
Comments
You can use interrupting web hooks for this, if I‘m not mistaken. Please feel free to reopen if I am indeed wrong here |
The described behavior is tested, so I can't (setting up a hook that's run after an identifier is provided but before a code is sent). I have no permissions to reopen the issue btw. |
Is this only for the code method? Or are there other use cases? |
I can't remember different use cases tbh. |
What exactly do you want to govern? Do you want to show the user some warning or do you want to use a different SMS gatewa or something else? |
Something like access control. Disallowing logging in with SMS for specific users. |
I believe you can achieve this today with the following steps:
|
Yes, but it'll be triggered after an unnecessary SMS was sent (which costs some money). |
Preflight checklist
Ory Network Project
No response
Describe your problem
It'd be useful to have an extra hook for
login
,recovery
andverification
flows.Currently it's impossible to interrupt a flow if the decision has to be made based on the identity data but before
code
is sent.Describe your ideal solution
Add extra hook type for
login
,recovery
andverification
flows, that will be triggered after first input of identifier.The template data of a jsonnet file will provide
identity
property.Workarounds or alternatives
-
Version
1.3.0
Additional Context
No response
The text was updated successfully, but these errors were encountered: