Authentication (Login/Logout)
IAP/REST provides authentication methods allowing you to login and logout of the CMS, as well as update user passwords. Before being able to make any IAP/REST calls, you need to be logged into the CMS.
REST URL format is SmartServer-version specific
- With SmartServer release 2.8 or higher, you do not have to specify the port number.
https://<apollo_ip>/cms
- With SmartServer 2.7 and prior, you have to specify the port number (8443).
https://<apollo_ip>:8443/cms
URI Definition
Method | URI and Fields | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | /iap/auth/sessionTimeout | |||||||||||||||||||||||||||||||||
Returns the timeout of the current user's session in milliseconds. Example:
| ||||||||||||||||||||||||||||||||||
POST | /iap/auth/login | |||||||||||||||||||||||||||||||||
Authenticates the user in the CMS. Returns information about the user, if the login operation is successful. Request Header"Content-type" must be set to "application/json". Payload Arguments
Example:
Response Parameters
Response Example:
| ||||||||||||||||||||||||||||||||||
PUT | /iap/auth/logout | |||||||||||||||||||||||||||||||||
Logs out the current user from CMS. | ||||||||||||||||||||||||||||||||||
/iap/auth/resetPwd | ||||||||||||||||||||||||||||||||||
Allows a user to reset a password. Sends an email to the user. Payload Arguments
Example:
|
Query Parameters
Optional query parameters can be used with your REST request. Specifying queries is described under Queries and Parameters, Path Parameters, and Query Parameters.
Example
POST /iap/auth/login {"username":"mark","password":"5pa?HG!O"} Response: { |