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

fix: add twilio verify support on mfa #1714

Merged
merged 3 commits into from
Oct 9, 2024

Conversation

J0
Copy link
Contributor

@J0 J0 commented Aug 6, 2024

What kind of change does this PR introduce?

As per title, we need to add a separate check when verify with Twilio Verify as the OTP is stored with Twilio verify and not stored by Supabase Auth. Supabase Auth will need to make a HTTP request to Twilio, via VerifyOTP and have Twilio tell it whether the code was correct.

internal/api/mfa.go Outdated Show resolved Hide resolved
@J0
Copy link
Contributor Author

J0 commented Sep 30, 2024

Will close this out tomorrow.

@coveralls
Copy link

coveralls commented Oct 1, 2024

Pull Request Test Coverage Report for Build 11125582479

Details

  • 8 of 30 (26.67%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.06%) to 57.907%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/api/sms_provider/messagebird.go 0 3 0.0%
internal/api/sms_provider/textlocal.go 0 3 0.0%
internal/api/sms_provider/twilio.go 0 3 0.0%
internal/api/sms_provider/vonage.go 0 3 0.0%
internal/api/mfa.go 8 18 44.44%
Files with Coverage Reduction New Missed Lines %
internal/api/mfa.go 1 64.64%
Totals Coverage Status
Change from base Build 11077276448: -0.06%
Covered Lines: 9356
Relevant Lines: 16157

💛 - Coveralls

@J0 J0 force-pushed the j0/add_twilio_verify_support_for_mfa_phone branch from 4d4b39d to 474a4b6 Compare October 1, 2024 12:44
@J0 J0 marked this pull request as ready for review October 1, 2024 13:05
@J0 J0 requested a review from a team as a code owner October 1, 2024 13:05
@J0 J0 requested a review from cstockton October 3, 2024 15:46
internal/api/mfa.go Show resolved Hide resolved
@hf hf dismissed cstockton’s stale review October 9, 2024 09:50

Looks like they were addressed?

@J0 J0 merged commit aeb5d8f into master Oct 9, 2024
4 checks passed
@J0 J0 deleted the j0/add_twilio_verify_support_for_mfa_phone branch October 9, 2024 14:10
cstockton pushed a commit that referenced this pull request Oct 15, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.163.0](v2.162.2...v2.163.0)
(2024-10-15)


### Features

* add mail header support via `GOTRUE_SMTP_HEADERS` with `$messageType`
([#1804](#1804))
([99d6a13](99d6a13))
* add MFA for WebAuthn
([#1775](#1775))
([8cc2f0e](8cc2f0e))
* configurable email and sms rate limiting
([#1800](#1800))
([5e94047](5e94047))
* mailer logging ([#1805](#1805))
([9354b83](9354b83))
* preserve rate limiters in memory across configuration reloads
([#1792](#1792))
([0a3968b](0a3968b))


### Bug Fixes

* add twilio verify support on mfa
([#1714](#1714))
([aeb5d8f](aeb5d8f))
* email header setting no longer misleading
([#1802](#1802))
([3af03be](3af03be))
* enforce authorized address checks on send email only
([#1806](#1806))
([c0c5b23](c0c5b23))
* fix `getExcludedColumns` slice allocation
([#1788](#1788))
([7f006b6](7f006b6))
* Fix reqPath for bypass check for verify EP
([#1789](#1789))
([646dc66](646dc66))
* inline mailme package for easy development
([#1803](#1803))
([fa6f729](fa6f729))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants