Skip to content

Commit 47d23e9

Browse files
authored
DOCS-3516 (auth0#10374)
* Added `redirect_uri` parameter to Authentication User endpoint https://auth0team.atlassian.net/browse/DOCS-3516 * Added `required` tag to `redirect_uri` parameter
1 parent fcd1f5b commit 47d23e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/api/authentication/_passwordless.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,16 @@ Content-Type: application/json
128128
"realm": "email|sms" //email or sms
129129
"username":"USER_EMAIL|USER_PHONE_NUMBER", // depends on which realm you chose
130130
"audience" : "API_IDENTIFIER", // in case you need an access token for a specific API
131-
"scope": "SCOPE"
131+
"scope": "SCOPE",
132+
"redirect_uri": "REDIRECT_URI"
132133
}
133134
```
134135

135136
```shell
136137
curl --request POST \
137138
--url 'https://${account.namespace}/oauth/token' \
138139
--header 'content-type: application/json' \
139-
--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"}'
140+
--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"}'
140141
```
141142

142143
```javascript
@@ -205,6 +206,7 @@ Once you have a verification code, use this endpoint to login the user with thei
205206
| `otp` <br/><span class="label label-danger">Required</span> | The user's verification code. |
206207
| <dfn data-key="audience">`audience`</dfn> | API Identifier of the API for which you want to get an Access Token. |
207208
| <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. |
209+
| `redirect_uri` <br/><span class="label label-danger">Required</span> | A callback URL that has been registered with your application's **Allowed Callback URLs**. |
208210

209211

210212
### Test with Authentication API Debugger

0 commit comments

Comments
 (0)