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

Update _get-token.md #10307

Merged
merged 4 commits into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
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: 3 additions & 3 deletions articles/api/authentication/api-authz/_get-token.md
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ Content-Type: application/json
```

```JSON
HTTP/1.1 400 BAD REQUEST
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
// Can be retried
Expand All @@ -448,7 +448,7 @@ Content-Type: application/json
```

```JSON
HTTP/1.1 400 BAD REQUEST
HTTP/1.1 429 Too Many Requests
Content-Type: application/json
{
// Can be retried
Expand All @@ -458,7 +458,7 @@ Content-Type: application/json
```

```JSON
HTTP/1.1 400 BAD REQUEST
HTTP/1.1 403 Forbidden
Content-Type: application/json
{
// Cannot be retried; transaction failed
Expand Down
8 changes: 8 additions & 0 deletions articles/flows/guides/device-auth/includes/request-tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ While you wait for the user to authorize the device, you may receive a few diffe
You will see this error while waiting for the user to take action. Continue polling using the suggested interval retrieved in the previous step of this tutorial.

```json
`HTTP 403`

{
"error": "authorization_pending",
"error_description": "..."
Expand All @@ -61,6 +63,8 @@ You will see this error while waiting for the user to take action. Continue poll
You are polling too fast. Slow down and use the suggested interval retrieved in the previous step of this tutorial. To avoid receiving this error due to network latency, you should start counting each interval after receipt of the last polling request's response.

```json
`HTTP 429`

{
"error": "slow_down",
"error_description": "..."
Expand All @@ -76,6 +80,8 @@ Then `expired_token` error will be returned exactly once; after that, the dreade
:::

```json
`HTTP 403`

{
"error": "expired_token",
"error_description": "..."
Expand All @@ -87,6 +93,8 @@ Then `expired_token` error will be returned exactly once; after that, the dreade
Finally, if access is denied, you will receive:

```json
`HTTP 403`

{
"error": "access_denied",
"error_description": "..."
Expand Down
Loading