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

DOCS-3516 #10374

Merged
merged 2 commits into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions articles/api/authentication/_passwordless.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,16 @@ Content-Type: application/json
"realm": "email|sms" //email or sms
"username":"USER_EMAIL|USER_PHONE_NUMBER", // depends on which realm you chose
"audience" : "API_IDENTIFIER", // in case you need an access token for a specific API
"scope": "SCOPE"
"scope": "SCOPE",
"redirect_uri": "REDIRECT_URI"
}
```

```shell
curl --request POST \
--url 'https://${account.namespace}/oauth/token' \
--header 'content-type: application/json' \
--data '{"grant_type":"http://auth0.com/oauth/grant-type/passwordless/otp", "client_id":"${account.clientId}", "client_secret":"CLIENT_SECRET", "otp":"CODE", "realm":"email|sms", "username":"USER_EMAIL|USER_PHONE_NUMBER", "audience":"API_IDENTIFIER", "scope":"SCOPE"}'
--data '{"grant_type":"http://auth0.com/oauth/grant-type/passwordless/otp", "client_id":"${account.clientId}", "client_secret":"CLIENT_SECRET", "otp":"CODE", "realm":"email|sms", "username":"USER_EMAIL|USER_PHONE_NUMBER", "audience":"API_IDENTIFIER", "scope":"SCOPE", "redirect_uri": "REDIRECT_URI"}'
```

```javascript
Expand Down Expand Up @@ -205,6 +206,7 @@ Once you have a verification code, use this endpoint to login the user with thei
| `otp` <br/><span class="label label-danger">Required</span> | The user's verification code. |
| <dfn data-key="audience">`audience`</dfn> | API Identifier of the API for which you want to get an Access Token. |
| <dfn data-key="scope">`scope`</dfn> | Use `openid` to get an ID Token, or `openid profile email` to also include user profile information in the ID Token. |
| `redirect_uri` <br/><span class="label label-danger">Required</span> | A callback URL that has been registered with your application's **Allowed Callback URLs**. |


### Test with Authentication API Debugger
Expand Down
Loading