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 a new access token GET

Get a new access token

Invalidate a refresh token POST

Invalidate a refresh token

POST
/auth/login

Get a new refresh token by providing user credentials

Query Parameters

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

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

username*string
Lengthlength <= 256
password*string
Lengthlength <= 256

Response Body

text/plain

application/json

application/json

curl -X POST "https://authentication.eniris.be/auth/login" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "password": "My super secret password"  }'

application/json

application/json

"Jpc3MiOiJodHRwczovL2F1dGhlbnRpY2"
{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "body must have required property 'username'"
}
{
  "statusCode": 401,
  "error": "Unauthorized",
  "message": "PASSWORD_INCORRECT"
}
{
  "statusCode": 429,
  "error": "Too many requests",
  "message": "TOO_MANY_FAILED_PASSWORD_CHECKS",
  "retryAfter": 0
}
{
  "statusCode": 500,
  "error": "Internal server error",
  "message": "NO_PASSWORD_INFO"
}