REST API  17
REST API for Luna Network HSMs
POST /auth/session

POST /auth/session

Create a private session for the user and return a session cookie.

Parameters

None

Responses

204

Success

400

FRAMEWORK_INVALID_AUTHORIZATION_HEADER

Returned when the input data does not conform to the required validation schema.

401

FRAMEWORK_FAILED_LOGIN

The provided credentials are incorrect (invalid username or password) or the account is locked for the interval configured.

401

FRAMEWORK_PASSWORD_CHANGE_REQUIRED

Password for the current user is expired. Please consider changing it.

Example Request

   POST
   https://1.2.3.4:8443/auth/session
   Authorization: Basic YWRtaW46MXFAVzNlJFI=
   {
   }

Example Result

   Set-Cookie: SESSION_ID=cc01f1eb-56c0-4624-a3db-e03d3daa83fe; path=/; HttpOnly; Secure
   {
   }