LogoLogo
  • Ứng dụng VinID
  • Giới thiệu chung
    • Dịch vụ thanh toán VinID Pay
    • Dịch vụ loyalty VinID Point
    • Quy trình tích hợp
  • Tài liệu tích hợp
    • Môi trường tích hợp
    • Quy tắc kết nối chung
      • Request Header
      • X-Key-Code
      • Signature - chữ kí điện tử
      • Ví dụ Request / Response
      • Extra Data
    • OneID SSO Integration (PKCE)
      • Auth endpoint
      • Token endpoint
      • Refresh token
      • Logout endpoint
      • Profile endpoint
      • OpenID Configuration
    • Tích hợp với VinID Pay
      • Thanh toán Merchant QR
      • Thanh toán Transaction QR
      • Thanh toán App to App
      • Thanh toán Web Payment
      • Thanh toán Linked Account
      • Dịch vụ chi hộ
      • Callback / IPN
      • Refund giao dịch
    • Tích hợp với VinID Loyalty
      • Dịch vụ lấy hạng thành viên trung thành
      • Dịch vụ VinID Giftcode
        • Deprecated APIs
      • Dịch vụ Topup VinID Point
        • Deprecated APIs
    • Tích hợp với VinID Voucher
      • Dịch vụ E-Voucher
    • Mã lỗi chung
  • Đối soát
    • Đối soát Ví điện tử VinID Pay
  • Khác
    • Thuật ngữ
    • Câu hỏi thường gặp
    • Ứng dụng quản lý
      • Merchant Mobile App
      • Merchant Website
    • Thông tin hỗ trợ
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Tài liệu tích hợp
  2. OneID SSO Integration (PKCE)

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

Name
Type
Description

Content-Type

string

application/x-www-form-urlencoded

Request Body

Name
Type
Description

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

PreviousAuth endpointNextRefresh token

Last updated 4 years ago

Was this helpful?