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

Allow passwordless SMS code verification to use token endpoint #591

Merged
merged 2 commits into from
Mar 11, 2021

Conversation

jimmyjames
Copy link
Contributor

Changes

The verifySMSCode method on the AuthenticationClient delegates to the signIn method of the PasswordlessAuthenticator. It only passed the username and password, which results in calling the deprecated /oauth/ro endpoint to authenticate. With the addition of #556, passing the otp will result in calling the /oauth/token endpoint to authenticate.

This change allows sending the otp option when calling verifySMSCode, which will enable using the token endpoint instead of /oauth/ro. Callers passing a code or password will still use the /oauth/ro endpoint.

References

#556

Checklist

@jimmyjames jimmyjames added this to the vNext milestone Mar 10, 2021
@jimmyjames jimmyjames requested a review from a team as a code owner March 10, 2021 21:50
@jimmyjames jimmyjames force-pushed the allow-sms-code-to-use-token-ep branch from f8e2887 to ac04df1 Compare March 11, 2021 19:00
@jimmyjames jimmyjames merged commit 0ab3203 into master Mar 11, 2021
@davidpatrick davidpatrick mentioned this pull request Mar 24, 2021
@evansims evansims deleted the allow-sms-code-to-use-token-ep branch June 13, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants