Skip to main content

Client Credential Flow

Este endpoint permite generar access token para acceder a los servicios de trust, se requiere un client_id y un client_secret. El token retornado tiene un tiempo de expiracion indicado en la suma de created_at + expires_in.

Endpoint#

Headers

KeyValueDescription
Content-Typeapplication/json

Url

Method: POST
URL: https://atenea.trust.lat/oauth/token/

Body#

{
"client_id": "1111-2222-3333-4444",
"client_secret": "aaaa-bbbb-cccc-dddd",
"grant_type": "client_credentials"
}

Code examples#

curl --location --request POST 'https://atenea.trust.lat/oauth/token/' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "1111-2222-3333-4444",
"client_secret": "aaaa-bbbb-cccc-dddd",
"grant_type": "client_credentials"
}'

Responses#

HTTP Code: 200 OK#

{
"access_token": "sdVEav3xu------------------------------",
"token_type": "Bearer",
"expires_in": 7200,
"created_at": 1590515112
}
Last updated on by Claudio-Franco