Skip to content

Conversation

@JoaoSouMoreira
Copy link
Contributor

Changes

Currently there is no way to add an email channel oob authenticator because the existing addOobAuthenticator only supports adding a phone number even though you can set any oob channel. This PR will split addOobAuthenticator into addPhoneOobAuthenticator and addEmailOobAuthenticator along with test coverage for the email based method.

I was initially thinking of keeping the single method and consolidating all of the logic inside but I feel like a clear separation makes the code easier to understand and test.

References

#603

Testing

This can be manually tested by calling either addPhoneOobAuthenticator or addEmailOobAuthenticator in your projects and seeing either a valid response from the API or an error.

  • This change adds test coverage
  • This change has been tested on the latest version of the platform/language or why not

Checklist

@JoaoSouMoreira JoaoSouMoreira requested a review from a team as a code owner July 24, 2025 18:33
@tanya732
Copy link
Contributor

Hi @JoaoSouMoreira

Thank you for opening the PR! I appreciate your contribution. I'll review it shortly.

Thank you

@JoaoSouMoreira JoaoSouMoreira requested a review from tanya732 July 30, 2025 15:27
@JoaoSouMoreira JoaoSouMoreira requested a review from tanya732 August 4, 2025 13:16
@tanya732
Copy link
Contributor

tanya732 commented Aug 4, 2025

Hi @JoaoSouMoreira

Thanks for the contribution! I noticed the Codecov patch check is currently failing because the test coverage for the changes is below the required threshold (88.46% vs 96.95%). Would you mind adding some additional tests to bring coverage up? Let me know if you need help.

@JoaoSouMoreira
Copy link
Contributor Author

Hi @JoaoSouMoreira

Thanks for the contribution! I noticed the Codecov patch check is currently failing because the test coverage for the changes is below the required threshold (88.46% vs 96.95%). Would you mind adding some additional tests to bring coverage up? Let me know if you need help.

I've added tests covering as much as I could for both implementations of addOobAuthenticator.

@tanya732
Copy link
Contributor

tanya732 commented Aug 5, 2025

@JoaoSouMoreira

I missed to check, can you please sign your commits ?

Thank you

@JoaoSouMoreira JoaoSouMoreira force-pushed the joaosoumoreira/add-method-to-enroll-email-mfa branch from 99f81ad to 8f9d5dc Compare August 5, 2025 13:47
@JoaoSouMoreira JoaoSouMoreira force-pushed the joaosoumoreira/add-method-to-enroll-email-mfa branch from 8f9d5dc to b6938e1 Compare August 5, 2025 13:50
@JoaoSouMoreira
Copy link
Contributor Author

@JoaoSouMoreira

I missed to check, can you please sign your commits ?

Thank you

This is done. If this is something that is generally requested for open source contributions I would recommend that it be added to the Contributing guidelines so folks are aware.

@tanya732
Copy link
Contributor

tanya732 commented Aug 5, 2025

@JoaoSouMoreira

Thank you for signing the commits and pointing it out the Contributing guidelines, I will update the doc.

I have merged your changes and created #744. Will release this change in next release.

Thank you

@JoaoSouMoreira
Copy link
Contributor Author

@JoaoSouMoreira

Thank you for signing the commits and pointing it out the Contributing guidelines, I will update the doc.

I have merged your changes and created #744. Will release this change in next release.

Thank you

Sounds good, thank you. Do you have a rough timeline on when the next release is planned to come out?

@tanya732
Copy link
Contributor

Hi @JoaoSouMoreira

The changes have been successfully released and can be found here

Accordingly, I am closing the PR.

Thank you for your contribution!

@tanya732 tanya732 closed this Aug 22, 2025
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.

2 participants