Authentication Control

The AuthenticationController interface allows developers to define and manage user authentication.

Overview

AuthenticationController is an Authorization API that provides a way for developers to get information or execute requests regarding user authentication.

Methods and Response Formats

Table 1. AuthenticationController Interface
Method and response format Remarks
POST /auth/custom-login Authenticate the user through customToken in header.
POST /auth/login Check if the user is able to login with the valid username and password.
POST ​/auth​/logout Logout API to logout the user by passing accessToken.
POST /auth/validate Validate the user with LtpaToken2 as a header parameter.

Parameters

The request must be a standard HTTP GET, POST, PUT or DELETE command.

Table 2. Additional Parameters
Name Description
Cookie Access token for authentication fetched from Cookie.
virtualportal Virtual portal to which the request needs to be sent to.

Response Codes

Table 3. Response Codes
Code Description
200 OK.
400 Bad request
401 Unauthorized request
404 Request not found
422 Unprocessable entity (WebDAV)
500 Internal server error