access token
.client_id
84be6ce9-6610-42d5-9cf1-acd85a5574cb
scope
webhook%20transaction
redirect_uri
https://www.example.com/auth-callback
response_type
code
state
84be6ce9661042d59cf
Callback URL
được xác định trong authorization URL.https://oauth.casso.vn/auth/token
với các giá trị được hiển thị bên dưới. Cung cấp base64 của client_id:client_secret dưới dạng basic token
trong Authorization HTTP Header.grant_type
authorization_code
authorization_code
client_id
84be6ce9-6610-42d5-9cf1-acd85a5574cb
client_secret
58dfc671-c650-457f-8a24-3d57bdeab5ac
redirect_uri
https://www.example.com/auth-callback
code
6be34af7-6699-41cb-9c41-e02c635bd354
expires_in
khi authorization code
được trao đổi lấy access token.refresh token
đã nhận để lấy access token
mới bằng cách gửi yêu cầu POST URL-form encoded tới https://oauth.casso.com/auth/token
với các giá trị bên dưới. Cung cấp base64 của client_id:client_secret dưới dạng basic token trong Authorization HTTP Header.grant_type
refresh_token
refresh_token
client_id
84be6ce9-6610-42d5-9cf1-acd85a5574cb
client_secret
58dfc671-c650-457f-8a24-3d57bdeab5ac
redirect_uri
https://www.example.com/auth-callback
refresh_token
6be34af7-6699-41cb-9c41-e02c635bd354
Access token
mới có thể được sử dụng để thực hiện request thay cho người dùng. Khi access token
mới hết hạn, bạn có thể thực hiện lại các bước tương tự để lấy mã mới. access token
hết hạn, bạn thực hiện lại các bước tương tự với refresh token để lấy mã mới.