Kodall
REST API

Auth API

The Auth API provides session and server information and enables the creation of reusable session cookies, unlike the stateless access offered by API key authentication.

The Auth API provides session and server information and enables the creation of reusable session cookies, unlike the stateless access offered by API key authentication.

POST /auth

Authenticates the user and creates the session. Authentication can be done via user name and password or via an access token issued by the issuer provided in the oidcIssuer field.

Request

POST /auth

HeaderValue
Content-Typeapplication/x-www-form-urlencoded

Example payload:

HTTP
user=root&password=pass&locale=ro

Response

Example

POST/auth
Initializing connection...

GET /auth

Retrieve session info and server info.

Request

GET /auth

Response

Example

GET/auth
Initializing connection...

Possible Params

Roles - GET /auth?roles=1

Profiles - GET /auth?profiles=1

The request params can be combined as usual with &, so the complete example will be GET /auth?roles=1&profiles=1.

Response

Example

GET/auth?roles=1&profiles=1
Initializing connection...

POST /auth/refresh

Refreshes the authentication token.

Request

POST /auth/refresh

Response

Example

POST/auth/refresh
Initializing connection...

GET /auth/profiles

Retrieves the user profiles list.

Request

GET /auth/profiles

Response

Example

GET/auth/profiles
Initializing connection...

POST /auth/profile/{name}

Change to specific profile.

Request

POST /auth/profile/{name}

Response

Example

POST/auth/profile/profile_name
Initializing connection...

POST /auth/profile

Change to default profile.

Request

POST /auth/profile

Response

Example

POST/auth/profile
Initializing connection...

POST /auth/password

Retrieve session info and server info.

Request

POST /auth/password

HeaderValue
Content-Typeapplication/x-www-form-urlencoded

Example payload:

TEXT
current-password=1234&set-password=4321&confirm-password=4321

Response

Example

POST/auth/password
Initializing connection...

HEAD /auth?logout=1

Terminates the session.

Example

HEAD/auth?logout=1
Initializing connection...