Skip to main content

Login User

Create a user session token, which can then be passed to other web services.

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

💡 Tip: In order to get the login instructions or guidance on how to use the system, the getLoginInstructions command can be called. This returned information can then be shown to the end user prior to calling the loginUser command.

Request​

Parameters​

getLoginInstructions
formatproperties - (Default) key=value. most useful when requesting a single object. If multiple objects are returned, values is a csv. ie key=value1,value2,value3 where value1 is the value for the first object, value2 is the value for the 2nd object, etc.

json - Useful format for parsing into javascript or other languages. See www.json.org for details.

Headers​

Bearer token
Acceptapplication/json
Content-Typeapplication/json

Body​

<username>{{UserName}}</username>
<password>{{Password}}</password>
<authsource>value</authsource>
UserNameThe username used to log in.
PasswordThe password used to log in.
authsourceAn optional auth source provider name used to log in with such as an ldap provider. This can included as an URL parameter alternatively. In the case of using a third party SSO please ensure an SSO Authenticator Provider is configured appropriately and then invoke the loginUser command with the right authsource. The auth source provider name used to log in such as SSO user header or SSO SAML can be provided as content in the POST or as a request parameter. A request parameter is recommended so the post can be used for anything like a SAML assertion.

Response​

Parameters​

typeExecuted command name
tokenThe security token for this user

Examples​

Request​

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

Response​

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