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/validate

Authorization

refreshToken
AuthorizationBearer <token>

In: header

Response Body

application/json

Validate an access token GET

Validate an access token

Collect companies associated with the user GET

Collect company roles associated with the user. This includes: <ul> <li> Any company roles of which the user is either a direct or indirect member, i.e. the user can operate on behalf of that company </li> <li> Any company role such that the user is a member of a role which is directly or indirectly managed by that company </li> </ul>

application/json

curl -X GET "https://authentication.eniris.be/auth/refreshtoken/validate"

Validate 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.

{
  "userId": 0
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "NO_TOKEN_PROVIDED"
}