Token endpoint

Token endpoint được thiết kế theo đặc tả tại https://tools.ietf.org/html/rfc6749#section-4

/oauth2/token

POST https://oauth-qc.vinid.net/oauth2/token

API này được sử dụng cho Authorization code (PKCE) để exchange token từ authorization code có được từ Auth endpoint.

Headers

NameTypeDescription

Content-Type

string

application/x-www-form-urlencoded

Request Body

NameTypeDescription

redirect_uri

string

code

string

code_verifier

string

client_id

string

grant_type

string

{
  "access_token": "string",
  "expires_in": 0,
  "id_token": 0,
  "refresh_token": "string",
  "scope": 0,
  "token_type": "string"
}

Tham số

Định dạng

Mô tả

Ví dụ

client_id

string

1mg

grant_type

string

authorization_code

code_verifier

string

code

string

Authorization code

redirect_uri

string

http://example.com/callback

Last updated