Skip to content

Commit

Permalink
Update _get-token.md (#10307)
Browse files Browse the repository at this point in the history
* Update _get-token.md

Fixed incorrect response codes

* Update request-tokens.md

Included specifics for HTTP 4xx error codes in quickstart.

* Update _get-token.md

Resolved error code descriptions
  • Loading branch information
nick-gagliardi authored Sep 27, 2023
1 parent 8f68439 commit f5fd278
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
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

0 comments on commit f5fd278

Please sign in to comment.