Note
This API is being deprecated and replaced by the Access Tokens API.
Description: Refresh an access token to extend its validity. If only the access token and the refresh token are provided (and no other parameters), this pair is used for authentication. If username or any other parameter is provided, then the request must be authenticated by a token that grants admin permissions.
Since: 5.0.0
Security: Requires a valid user (unless both access token and refresh token are provided)
Usage: POST /api/security/token
Content-Type: application/x-www-form-urlencoded
Produces: application/json (refer to Create Token)
Sample Usage:
curl -XPOST "http://localhost:8081/artifactory/api/security/token" -d "grant_type=refresh_token" -d "refresh_token=fgsg53t3g…" -d "access_token=gsfdgw35gt..." 200 (Success) As in Create Token 400 (Error) If the token was created by a different Artifactory instance (and hence cannot be refreshed)
This endpoint takes the following parameters:
| Should be set to |
| The refresh token of the access token that needs to be refreshed. |
| The access token to refresh. |
| Refer to Create Token. Note: If |
| |
| |
| |
|