-
Notifications
You must be signed in to change notification settings - Fork 976
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
feat: add sms verification for phone numbers #3649
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3649 +/- ##
==========================================
- Coverage 78.40% 78.34% -0.07%
==========================================
Files 346 346
Lines 23529 23548 +19
==========================================
- Hits 18449 18448 -1
- Misses 3695 3711 +16
- Partials 1385 1389 +4 ☔ View full report in Codecov by Sentry. |
Nice work! Two thoughts:
|
Good point, maybe we can do this in a follow-up, depending on demand? Not sure if this is a requirement for anyone right now.
It's not quite complete yet. The long term plan is to deprecate the |
2670af7
to
ca7ccc6
Compare
SSRF is currently governed globally, I would keep it that way and not add more configuration options for the courier's SSRF protections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, just a few minor comments!
persistence/sql/migrations/sql/20231130094628000000_courier_message_channel.up.sql
Outdated
Show resolved
Hide resolved
Thinking about the channels for a bit, isn't this a bit too powerful & complicated? Do we need separate sender configs for verification and recovery emails? I imagine this to be quite complex to set up in the UI and to make people understand how to use this feature, especially because you need to understand how it maps to the identity schema. In the end what most people want is "send an SMS code" and "send an email code". Push notifications maybe at some point too, but that is a whole different beast we can tackle when it becomes a requirement. I would favor a more simplistic configuartion approach, especially for the time being as we only have SMS sending. |
As discussed directly, the channels approach gives great flexibility, and we want to keep it. However, in the Ory Network we're not going to expose this in the UI (for now) and only offer smtp, http, and sms channels. That way, first time users do not get lost in these dependent config values (the via key in the identity schema corresponds to the channel ID, etc.). (The first release of this, is going to be CLI configuration only, anyway.) Once we have an identity schema editor, this might be easier to describe in the UI and we can re-think this approach. |
Adds the ability to verify phone numbers via SMS.
Related issue(s)
Fixes #3559
Checklist
introduces a new feature.
contributing code guidelines.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got the approval (please contact
[email protected]) from the maintainers to push
the changes.
works.
Further Comments