Create new method to add Email based OOB authenticator and tests#737
Create new method to add Email based OOB authenticator and tests#737JoaoSouMoreira wants to merge 9 commits intoauth0:masterfrom
Conversation
|
Thank you for opening the PR! I appreciate your contribution. I'll review it shortly. Thank you |
|
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 |
|
I missed to check, can you please sign your commits ? Thank you |
99f81ad to
8f9d5dc
Compare
8f9d5dc to
b6938e1
Compare
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. |
|
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? |
|
The changes have been successfully released and can be found here Accordingly, I am closing the PR. Thank you for your contribution! |
Changes
Currently there is no way to add an email channel oob authenticator because the existing
addOobAuthenticatoronly supports adding a phone number even though you can set any oob channel. This PR will splitaddOobAuthenticatorintoaddPhoneOobAuthenticatorandaddEmailOobAuthenticatoralong 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
addPhoneOobAuthenticatororaddEmailOobAuthenticatorin your projects and seeing either a valid response from the API or an error.Checklist