API OAuth2
This request is used by Thales to retrieve an OAUTH 2.0 access authorization token to be used for outgoing issuer API requests.
Parámetros de encabezado
authorizationstringRequeridoExample:
The authorization header includes a client secret in base64URL encoded format following this syntax: Basic "[clientId:client secret]" as per https://www.rfc-editor.org/rfc/rfc2617
Basic aXNfdGJhbmswMToxMjM=Cuerpo
grant_typestring · enumRequeridoValores posibles:
scopestringOpcional
Access request scope as optionally defined by the issuer
Respuestas
200
Default allowed response
application/json
access_tokenstringSolo lecturaRequeridoExample:
The access token issued by the authorization server
ey...HRT6LOON7wexpires_instringSolo lecturaOpcionalExample:
Remaining time in seconds for the access_token to expire.
900scopestringSolo lecturaOpcional
Scope of the access_token.
token_typeundefined · enumRequeridoExample:
Type of the access_token that will be used to call Issuer APIs.
BearerValores posibles: expires_atstringSolo lecturaOpcionalExample:
Access token expiration timestamp
2023-06-06T05:05:59.711Z400
Bad request
post/oauth2/token
POST /authz/d1/v1/oauth2/token HTTP/1.1
Host: YOUR_DOMAIN
authorization: Basic aXNfdGJhbmswMToxMjM=
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 50
"grant_type='client_credentials'&scope='text'"{
"access_token": "ey...HRT6LOON7w",
"expires_in": "900",
"scope": "text",
"token_type": "Bearer",
"expires_at": "2023-06-06T05:05:59.711Z"
}Última actualización
¿Te fue útil?