-
Notifications
You must be signed in to change notification settings - Fork 978
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
Phone verification not working #3799
Comments
We have also run into this issue - it does not seem possible to create a verification flow for a phone number (our identity schema has both email and phone number traits). Perhaps it's necessary to add a This is especially an issue because it is not possible to redirect to a verification flow from settings after setting the user's phone number for server-side rendered apps. From the docs:
|
Can you share what response you get and what response you would expect? Please base your work off of Ory Network, which is running the latest variant of Ory Kratos. We have recently made some improvements |
We had some difficulty to make the phone verification working for API flows, but it worked well in the end, even if the messages talks about "emails" and not "phone" it's still gets flagged as verified. The main issue we had was this: The setup is that we add a phone number trait to our identity through a settings flow, it will automatically trigger a verification flow, and the API response of the POST settings flow, contains this:
Now the fun part, if we submit the verification flow with the expected code using a But if we make a
the GET route calls the same handler as the POST route, so when you call it without any parameter the active_method is reset. Maybe you dont have the same issue but hope this will help someone. PS: I'm not sure about the purpose of this second GET route handler that uses the same handler as the POST route @aeneasr ? |
I believe we have resolved issues around SMS verification, and your issue sounds like it‘s missing the method field in the request payload of the POST request. Please try this with the current master branch and if it turns out to still not work, comment here so we can reopen this issue |
Preflight checklist
Ory Network Project
No response
Describe the bug
When attempting to create a verification flow for phone numbers using the self-service API, despite configuring the kratos.yml file to utilize an SMS gateway for verification, the API still returns email attributes in the UI node instead of phone number attributes. This occurs even after following the documentation and configuring the system to use SMS verification. As a result, the intended functionality of phone number verification is not achieved.
Reproducing the bug
kratos.yml
file to use an SMS gateway for phone number verification.Relevant log output
No response
Relevant configuration
Version
v1.1.0
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Docker
Additional Context
No response
The text was updated successfully, but these errors were encountered: