From 47d23e9e6a5f0a89640bd968ac462bd10b22e5da Mon Sep 17 00:00:00 2001 From: Kevin Strong-Holte <42565453+kstrongholte@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:19:49 -0800 Subject: [PATCH] DOCS-3516 (#10374) * Added `redirect_uri` parameter to Authentication User endpoint https://auth0team.atlassian.net/browse/DOCS-3516 * Added `required` tag to `redirect_uri` parameter --- articles/api/authentication/_passwordless.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/articles/api/authentication/_passwordless.md b/articles/api/authentication/_passwordless.md index f44f868c3a..bab9b13a97 100644 --- a/articles/api/authentication/_passwordless.md +++ b/articles/api/authentication/_passwordless.md @@ -128,7 +128,8 @@ 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" } ``` @@ -136,7 +137,7 @@ Content-Type: application/json 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 @@ -205,6 +206,7 @@ Once you have a verification code, use this endpoint to login the user with thei | `otp`
Required | The user's verification code. | | `audience` | API Identifier of the API for which you want to get an Access Token. | | `scope` | Use `openid` to get an ID Token, or `openid profile email` to also include user profile information in the ID Token. | +| `redirect_uri`
Required | A callback URL that has been registered with your application's **Allowed Callback URLs**. | ### Test with Authentication API Debugger