OAuthTokenReq

Token request (RFC 6749). Sent as application/x-www-form-urlencoded or application/json. Confidential clients authenticate with client_id + client_secret in the body (client_secret_post) or an Authorization: Basic header (client_secret_basic); public clients send client_id only.

  • Required for confidential clients unless sent as HTTP Basic auth.

  • The authorization code (grant authorization_code).

  • PKCE verifier whose S256 digest matches the code_challenge of the authorization request (grant authorization_code).

  • Must equal the redirect_uri of the authorization request (grant authorization_code).

  • The current refresh token (grant refresh_token). It is rotated on every use; reusing a rotated-out token revokes the connection.

  • RFC 8707 resource indicator. Optional; must equal the authorization request's resource when supplied.