We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
According to the documentation at https://auth0.com/docs/api/authentication?http#authenticate-user the /oauth/token end-point accepts otp parameter. But this parameter is missing in the white-list in https://github.com/auth0/auth0.js/blob/master/src/helper/parameters-whitelist.js#L8 . So the oauthToken cannot white-list the otp parameter and removes it in https://github.com/auth0/auth0.js/blob/master/src/authentication/index.js#L397 .
/oauth/token
otp
oauthToken
To include the otp param and have it white-listed.
outh0.oauthToken({ username, otp, realm, grantType, audience });
Will result in error:
missing required parameter otp
Latest version from master branch
The text was updated successfully, but these errors were encountered:
Add otp to tokenParams
24ad4aa
Fixes auth0#1152
Add otp to tokenParams (#1153)
5e0e546
Fixes #1152
Successfully merging a pull request may close this issue.
Describe the problem
According to the documentation at https://auth0.com/docs/api/authentication?http#authenticate-user the
/oauth/token
end-point acceptsotp
parameter. But this parameter is missing in the white-list in https://github.com/auth0/auth0.js/blob/master/src/helper/parameters-whitelist.js#L8 . So theoauthToken
cannot white-list theotp
parameter and removes it in https://github.com/auth0/auth0.js/blob/master/src/authentication/index.js#L397 .What was the expected behavior?
To include the
otp
param and have it white-listed.Reproduction
Will result in error:
Environment
Latest version from master branch
The text was updated successfully, but these errors were encountered: