Authentication Service
Resource | Description |
---|
Login | Log in a user and return a session cookie for use on subsequent requests. |
Logout | Log out a user and destroy the user's session. |
Login
Log in a user and return a session cookie for use on subsequent requests. Accepts an HTTP form post with a
content type of
application/x-www-form-urlencoded
and a request body containing
username
and
password
form parameters in the following format:
username={username}&password={password}
Upon successful login, a 200 OK response will be returned, including a
JSESSIONID
cookie that contains your session ID. This header must be included on subsequent requests if they
do not contain HTTP Basic authentication credentials.
POST http://domain:port/application_context/api/core/v2/authentication/formlogin
Response
Type | Description |
---|
Response | an HTTP OK (200) response including a session cookie. |
Logout
Log out a user and destroy the user's session.
DELETE http://domain:port/application_context/api/core/v2/authentication/login
Response
Type | Description |
---|
Response | an HTTP OK (200) response. |