Validate An Access Token

Access code have an expire date, but they can also be deleted prematurely if your service revokes it or by user action. If you'd like your service to check whether an access code is still valid you can send it to us for verification. You may want to do this in order to see if you need to obtain a new one for a user or possibly to check if the user has invalidated the access code. We conform to the standard OAuth method for accessing resources. The resource in this instance is "ping".

Request

Example

Example Request for access_token value of "K67PfD34ygbbaHw2NBmo3prM6USimn5Z01PXxBLOQrXoThScA6G7mS6Zw4sq3PJN":

GET https://oauth.launchkey.com/resource/ping HTTP/1.1
host: oauth.launchkey.com
Authorization: Bearer K67PfD34ygbbaHw2NBmo3prM6USimn5Z01PXxBLOQrXoThScA6G7mS6Zw4sq3PJN

Response

The response will is status code based with a descriptive message attribute on a JSON object.

Authorized

A status code of 200 and message value of "valid" is received if the access_token is valid and authorized. Example:

HTTP/1.1 200 OK
...
{"message": "valid"}

Unauthorized

A status code of 401 and message value of "access_denied" is received if the access_token is not valid or not authorized. Example:

HTTP/1.1 401 Unauthorized
...
{"message": "access_denied"}

User Contributed

LaunchKey links to user contributed code as a resource to its community. LaunchKey does not in any way guarantee or warrant the quality and security of these code bases. User contributed code is supported by the creators. If you do find a link from the site to user contributed code that is malicious or inappropriate in any way, please report that link to LaunchKey immediately and we will investigate the claim. Submit any issue to LaunchKey support at https://launchkey.com./support. ×