Appearance
pingRefreshAccessToken ​
Given a valid refresh_token from pingLogin API, this API will refresh the access_token so it can be reused. This can save re-authenticating.
Up to the apps whether they want to use this and which scenarios it best applies to.
Request ​
http
POST /as/token.oauth2Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
grant_type | String | Yes | The OAuth grant type being requested. Hard-code to refresh_token. |
client_id | String | Yes | The name of the client for user authentication from client app. Returned by getLoginScheme API. |
client_secret | String | Yes | The secret of the client for user authentication from client app. Returned by getLoginScheme API. |
refresh_token | String | Yes | The refresh_token value from pingLogin response. |
Response ​
200 OK ​
SAMPLE RESPONSE
json
{
"access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJzY29wZSI6WyJzc28i....ILWJJGw",
"token_type": "Bearer",
"expires_in": 7199
}Errors ​
| Exception | Description |
|---|---|
Aaron TODO | See Error Definitions |