User
AuthorizationBearer <token>
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://authentication.eniris.be/user/2fa/totp/authenticate" \ -H "Content-Type: application/json" \ -d '{ "totp": "string" }'{
"accessToken": "string",
"refreshToken": "string",
"sudoToken": "string"
}{
"statusCode": 400,
"error": "Bad Request",
"message": "Invalid email address"
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "NO_TOKEN_PROVIDED"
}{
"statusCode": 409,
"error": "Conflict",
"message": "TOTP_UNINITIALIZED"
}{
"statusCode": 429,
"retryAfter": 0,
"error": "Too many requests",
"message": "TOO_MANY_TOTP_CHECKS"
}{
"statusCode": 500,
"error": "Internal server error",
"message": "TOTP_CORRUPT"
}Providing an access token or a partial auth token and a TOTP, acquire a sudo token or a sudo, refresh and access token respectively
A valid access token (proof of identity) can be obtained via the /accesstoken endpoint. It has a 5 minutes validity period.
6 <= length <= 6