Skip to main content

Login User

Create a session token for a user.

POST https://instance.securid.com/aveksa/command.submit?cmd=loginUser

tip

Call getLoginInstructions first to retrieve the username and password field labels to display in your login UI.

Request​

Parameters​

loginUser
formatproperties - (Default) Returns the response as key=value pairs.

json - Returns the response as JSON.
authsourceThe name of the authentication source provider (for example, an LDAP provider or SSO provider). Can also be included in the request body. Required when using third-party SSO.

Headers​

Acceptapplication/json
Content-Typeapplication/xml

Body​

The username used to log in.
The password used to log in.
authsourceThe authentication source provider name. Can be passed here or as a URL parameter. Use a URL parameter when the body contains a SAML assertion.
<username>username</username><password>password</password>

Response​

Parameters​

tokenThe session token for this user. Pass this as the Authorization: Bearer header in subsequent requests.

Examples​

Request​

curl -K -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=loginUser&format=json" \
-H "Content-Type: application/xml" \
-d "<username>user01</username><password>password123</password>"

Response​

{
"data": {
"type": "loginUser",
"token": "ws31012566e36e3be2c9:-28aff589:18a2758240d:-7c4e"
}
}

Verified with RSA Governance & Lifecycle version 8.0.0.188886 P10_HF01.