/api/v1/selphid/config
Gets the current configuration parameters of selphId-sdk and the service. The JWT authentication configuration is intentionally omitted from this response.
Any FACEPHI_SELPHID_* environment variable set when the service starts is also returned in the response, with its value.
HS256 JWT signed with auth_jwt_secret and carrying an exp claim, sent as Authorization: Bearer <jwt>.
Accepted while auth_accept_authorization_header is true (default). Only enforced when auth_enabled is
true.
An object with the current configuration parameters.
Incorrect parameters in the request.
Result when incorrect parameters arrive in the request.
400BadRequestReason of the rejection.
Malformed JSON inputA date and time value in "%Y-%m-%dT%H:%M:%SZ" format.
2022-01-14T10:42:05.521922ZJWT authentication is enabled and the request carries no token or an invalid one. message is one of
Missing authentication token, JWT token is expired, JWT token is not yet valid,
JWT token does not include exp claim, JWT token validation failed or, when auth_jwt_secret is empty,
Authentication secret is not configured.
An error occurred in the call to the SelphID-SDK backend.
GET /api/v1/selphid/config HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"status": 400,
"error": "BadRequest",
"message": "Malformed JSON input",
"timeStamp": "2022-01-14T10:42:05.521922Z"
}Last updated