Is there a way to “Refresh” a token once it has expired?
The default time a token lasts is 30 minutes, you can change that but is it possible to simply refresh a token that is expiring?
Really just a yes or no question.
Thanks.
Is there a way to “Refresh” a token once it has expired?
The default time a token lasts is 30 minutes, you can change that but is it possible to simply refresh a token that is expiring?
Really just a yes or no question.
Thanks.
Best answer by Stuart Painter
Hi
I did a quick follow up with Development just to be sure I wasn’t missing anything.
Development have provided this API, which might be just what you’re looking for:
https://api.commvault.com/#fd997305-1eaa-493c-b5bf-bf0416fc44bc
POST RenewLoginToken
http://WebConsoleHostName/webconsole/api/RenewLoginToken
This operation renews and returns a new session token by providing the expired token
| Name | Description |
|---|---|
| sessionId | Authtoken which needs to be renewed |
| deviceId | Device name from where login API was called. Note: Same deviceId must be passed in POST /Login API during login |
HEADERS
Accept: application/json
Content-Type: application/json
BODY raw
{
"sessionId": "{{ExpiredTOKEN}}",
"deviceId": "{{LoggedInDeviceName}}"
}
Apologies if we’ve gone around the houses to get here.
Thanks,
Stuart
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.