Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 13 OAuth Server : Retrieve Access Token Details

Retrieve Access Token Details
You can retrieve the information of an access token as follows:
Using Access Token
Validate Access Token Request
To validate an access token and retrieve the token details, use the following endpoint:
http://ASGServerHost:httpPort/asg/oauth2/access_token/Token_ID
http://ASGServerHost:httpPort/asg/oauth2/access_token/T1amGT21.Idup.3446d8984b48a7c0c531267317334ea7
where,
Token_ID refers to a valid access token.
Sample Response (Retrieve Access Token)
The following is an example response of retrieving an access token details using an access token for client credential flow:

 
{
"id": "5d34e914ad73b262dbf88a963dbccb41",
"accessToken": "T1amGT21.Idup.3446d8984b48a7c0c531267317334ea7",
"refreshToken": "T1amGR21.IdKM.8a7420fe5079ab1b3bd24b4de1d5fe2",
"secret": "619307e5-8e20-4997-9045-c083c123e04f",
"owner": "251-20c8104e-e91a-4384-980c-84545aced892",
"client": "251-20c8104e-e91a-4384-980c-84545aced892",
"classification": "reviews",
"scopes": [
"reviews"
],
"status": "Active",
"key": 0,
"createdOn": 1409942780365,
"expiresOn": 1409946380427,
"grantType": "client_credentials",
"samlToken": null,
"stringId": "5d34e914ad73b262dbf88a963dbccb41"
}

 
Retrieve List of Tokens
To retrieve the list of tokens maintained by the authorization server, use the following endpoint:
http://ASGServerHost:httpPort/asg/oauth2/access_token/owners
http://ASGServerHost:httpPort/asg/oauth2/access_token/owners
where,
ASGServerHost is the host name running TIBCO API Exchange Gateway.
httpPort is the port value for HTTP transport.
 
Retrieve Token for Specific Owner
To retrieve the information for a token issued to a specific owner, use the following endpoint:
http://ASGServerHost:httpPort/asg/oauth2/access_token/owners/owner_ID
where,
ASGServerHost is the machine running the Core Engine.
httpPort is the port value for HTTP transport.
owner_ID is the ID of owner.
 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved