Web services authentication
The login API uses the POST method to obtain the authentication credentials for the Presentation Server.
URL to access the login API
The generic format of the URL for the login API is:
https://<Presentation Server host name>/tsws/10.0/api/authenticate/login
Input parameters in the JSON format for the login API
When you provide input parameters for any web service request, you must specify the content-type parameter in the header of the web service request.
content-type application/json
The input parameters in JSON format:
{
"username": "<user name>",
"password": "<password>",
"tenantName": "<tenant name>"
}
"username": "<user name>",
"password": "<password>",
"tenantName": "<tenant name>"
}
Response information for the login API
The JSON response includes an authToken if the authentication is successful. Use this authToken for subsequent API calls.
{
"responseTimeStamp": "2015-07-21T06:23:51",
"statusCode": "200",
"statusMsg": "OK",
"response":
{
"authToken": "AQIC5wM2LY4Sfczv3QuPxC851ZfQ-.*",
"authPassed": true,
"expires": "2015-07-21T06:23:51",
"status": "OK"
}
}
"responseTimeStamp": "2015-07-21T06:23:51",
"statusCode": "200",
"statusMsg": "OK",
"response":
{
"authToken": "AQIC5wM2LY4Sfczv3QuPxC851ZfQ-.*",
"authPassed": true,
"expires": "2015-07-21T06:23:51",
"status": "OK"
}
}
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*