Skip to main content

Login

POST 

/nevisadmin/api/v1/login

Required permission: any authenticated user

Two token type options are supported: cookie and bearer. If no type is defined, token type 'cookie' will be set.

tokenType=cookie

For token type 'cookie', the token is returned as a (html-only) cookie with name 'auth-token'. In addition, a CSRF token is added with name 'XSRF-TOKEN'. This csrf protection token has to be sent as an http header with name 'X-XSRF-TOKEN' for all POST, PUT, DELETE or PATCH requests (if the header is missing, csrf validation fails).

tokenType=bearer

For token type 'bearer', the token is returned in the response payload. This token has to be sent as an HTTP Authorization header to any subsequent request.

Request

Responses

Success