Sofar logo
Sofar logo
Api
Get a new access token GETGet a new refresh token by providing user credentials POSTInvalidate a refresh token POSTGet a new refresh token by providing a refresh token GETValidate an access token GETValidate a refresh token GET
Authentication
GET
/auth/refreshtoken

Authorization

refreshToken
AuthorizationBearer <token>

In: header

Query Parameters

cookie?|||||||||||

Invalidate a refresh token POST

Invalidate a refresh token

Validate an access token GET

Validate an access token

Response Body

text/plain

application/json

application/json

curl -X GET "https://authentication.eniris.be/auth/refreshtoken"
"Jpc3MiOiJodHRwczovL2F1dGhlbnRpY2"
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "id_token is too long"
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "NO_TOKEN_PROVIDED"
}

Get a new refresh token by providing a refresh token

A valid refresh token can be obtained via the /login, /refreshtoken or /2fa/{method}/verify endpoints. A valid token can be invalidated via the /logout endpoint. It has a 14 days validity period.