Skip to content

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.oauth2

Parameters ​

ParameterTypeRequiredDescription
grant_typeStringYesThe OAuth grant type being requested. Hard-code to refresh_token.
client_idStringYesThe name of the client for user authentication from client app. Returned by getLoginScheme API.
client_secretStringYesThe secret of the client for user authentication from client app. Returned by getLoginScheme API.
refresh_tokenStringYesThe refresh_token value from pingLogin response.

Response ​

200 OK ​

SAMPLE RESPONSE

json
{
  "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImsxIn0.eyJzY29wZSI6WyJzc28i....ILWJJGw",
  "token_type": "Bearer",
  "expires_in": 7199
}

Errors ​

ExceptionDescription
Aaron TODOSee Error Definitions