Skip to content

Commit

Permalink
DOCS-3516 (#10374)
Browse files Browse the repository at this point in the history
* Added `redirect_uri` parameter to Authentication User endpoint

https://auth0team.atlassian.net/browse/DOCS-3516

* Added `required` tag to `redirect_uri` parameter
  • Loading branch information
kegashe authored Feb 21, 2024
1 parent fcd1f5b commit 47d23e9
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit 47d23e9

Please sign in to comment.