Authentication API
The Authentication API handles the processes of verifying a user’s identity and managing their session within the system.
| Method | Endpoint |
|---|---|
|
|
Description Check if the user session is valid. This function check the presence of an ssoToken. If a token was found, it is checked on the identity provider. If no token is found or the check was negative 401 "UNAUTHORIZED" will be sent back. If the token was confirmed by the provider 200 OK will be sent. |
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Destroys the current user session. |
|
Returns HTTP Status Code
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Destroy all user sessions. |
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Destroys a specific user session. |
|
Path Parameter
|
|
Returns HTTP Status Code
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Form based login. Forwarding credentials to identity provider. If login was ok, the ssoToken will be placed as cookie in response and the information from provider will be forwarded as JSON. |
|
Consumes
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Form based update of an existing session with the given tenant name. |
|
Consumes
|
|
Form Parameter
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Set the provided language in the user session. When Keycloak is used as IdP, the language gets set in the Keycloak user profile (locale). |
|
Path Parameter
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Forwards the provided body to the user self service of the currently used identity provider. |
|
Consumes
|
|
Returns The response of the user self service HTTP Status Code
Content-Type
|
|
Required Access Rights Can be used without a user session. |
|
|
|
Description Form based update of the users password. In case the IdP does not support updating user passwords, the user self service is used. Form params to provide:
|
|
Consumes
|
|
Returns HTTP Status Code
Content-Type
|
|
Required Access Rights A logged in user or API Key is required. |
|
|
|
Description Impersonate a user. Works only when Keycloak is used as identity provider. When used with Keycloak one of these Keycloak roles are needed: admin, realm-admin, (manage-users and impersonation) |
|
Path Parameter
|
|
Returns The user session as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|
|
|
|
Description Get user info by access token. Can only be used with an OpenID Connect provider. CURL example with 'bearer' as access token type
|
|
Consumes
|
|
Path Parameter
|
|
Form Parameter
|
|
Returns The requested user info as JSON. HTTP Status Code
Content-Type
|
|
Required Access Rights The logged in user or API Key must have either the following role or right.
|