Resources > Authenticate

Authenticate

Description

Logs the user on to the server and returns LW-SSO (Light Weight Single Sign On) and QCSession cookies for use with all subsequent requests.

URL

/LoadTest/rest/authentication-point/authenticate

Remarks

To create the request header, encode the string "<user name>:<password>" using Base64. The request header text is "Authorization: Basic <encoded user:password>"

In the header of each request after authentication, your application passes the LW-SSO and QCSession cookies returned by the authenticate resource. The tokens time out according to the System Administration settings from Application Lifecycle Management, by default after one hour of inactivity. The LW-SSO token is self-contained.

When your application has completed its work, call logout to release the log-on and session.

HTTP Method

GET: Returns the LW-SSO and QCSession cookies.

Request

Headers:

Authorization: Basic <encoded user:password>

Cookies:

None

Request Body:

None

Response

Headers:

None

Cookies:

Set-Cookie: LWSSO_COOKIE_KEY = {cookie}

Set-Cookie: QCSession = {cookie}

HTML Return Code:

One of the HTTP Return Codes

HTML Body:

None

See Also

logout