Jeremy_Clere_7804

How to use authentication tokens in REST requests

Discussion created by Jeremy_Clere_7804 on Aug 25, 2016
Latest reply on Jul 9, 2018 by tpasam
We are running a proof-of-concept of the CommVault backup system. The application can be controlled via REST APIs. Authentication works in the following way: the calling application requests to login using a POST request of type Login. The CommVault server replies with an authentication token. This token must be used in subsequent requests, and expires after 30 minutes of inactivity. The process is documented here: https://documentation.commvault.com/commvault/v10/article?p=features/rest_api/rest_api_authentication.htm Is there a way to configure the RA WebServices REST agent to request and use such an authentication token?

In order to connect your RA Webservice to CommVault you may use the OAuth 2.0. If the authorization token has an expiration date, you will make a call to the refresh URI using the refresh token to get a new one.
Please find below our official documentation here:
http://docs.automic.com/documentation/RA_Webservice/3.2/english/RA_Webservice_WEBHELP/help_en.htm#RA/WS/LC/Creating_REST_Connection_Objects.htm?Highlight=token

http://docs.automic.com/documentation/RA_Webservice/3.2/english/RA_Webservice_WEBHELP/help_en.htm#RA/WS/LC/Defining_Headers_and_Query_Parameters_for_REST_Job_Requests.htm%3FTocPath%3DWorking%2520with%2520the%2520Web%2520Service%2520Agent%7CCreating%2520REST%2520Jobs%7C_____2

Outcomes