OAuth Authentication

Poll device token endpoint

Changed on

RFC8628 token polling endpoint. Returns OAuth errors such as authorization_pending, slow_down, access_denied, and expired_token.

post/auth/device/token

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    none declared

Request body

object required
grant_type, 'urn:ietf:params:oauth:grant-type:device_code' required
device_code, string required
client_id, string required

Response

Device flow completed, auth-user session minted

AuthTokenResponse required
access_token, string required

JWT access token (expires after configured lifetime)

token_type, string required
expires_in, integer required

Access token lifetime in seconds

refresh_token, string

Long-lived token for getting new access tokens. Omitted when the request uses eligible HttpOnly cookie session storage.

user, AuthUser required

Example response

{
  "token_type": "bearer"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the response's body type changed from no type to object for status

    9 more changes in this revision