The login
actor-chain is used to log the agent into the site and verify the appropriate login and password credentials.
Parameter | Description |
---|---|
| The login of the agent. |
| The agent’s password. |
Agent Log In Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"login\" : \"ServiceAdmin\" , \"password\" : \"service123\" }" "http://localhost:8280/rest/model/atg/agent/userprofiling/AgentProfileActor/ login"
If the log in information proves to be correct, the following success server response occurs:
{"userId": "svcUserAdmin>}
If the log in information proved to be incorrect, the following exception would occur:
{"formError": true, "formExceptions":[{"localizedMessage":"The password and login combination is incorrect.","errorCode":"invalidPassword"}]}