The User OAuth 2.0 Token Management API provides operations to manage tokens issued by an Authorization Server for a particular User and Client in your org. For example, you can revoke every active refresh token for a User in the context of a specific Client. You can also revoke specific tokens or manage tokens at the authorization server level.
Read Validate Access Tokens to understand more about how OAuth 2.0 tokens work.
okta.users.read
Lists all refresh Tokens issued for the specified User and client
expand | string Valid value: Example: expand=scope |
after | string The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the |
limit | integer <int32> [ 1 .. 200 ] Default: 20 Specifies the number of tokens to return |
Success
Forbidden
Not Found
Too Many Requests
[- {
- "clientId": "string",
- "created": "2017-03-28T01:11:10.000Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "id": "oar579Mcp7OUsNTlo0g3",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "scopes": [
- "offline_access"
], - "status": "ACTIVE",
- "userId": "00u5t60iloOHN9pBi0h7",
- "_embedded": {
- "scopes": [
- {
- "description": "Requests a refresh token by default, used to obtain more access tokens without re-prompting the user for authentication",
- "displayName": "string",
- "id": "scppb56cIl4GvGxy70g3",
- "name": "offline_access",
- "_links": {
- "scope": {
- "title": "offline_access"
}
}
}
]
}, - "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}, - "revoke": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}, - "user": {
- "title": "SAML Jackson"
}, - "authorizationServer": {
- "title": "Example Authorization Server"
}
}
}
]
okta.users.manage
Revokes all refresh Tokens issued for the specified User and client
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}
okta.users.read
Retrieves a refresh Token issued for the specified User and client
Success
Forbidden
Not Found
Too Many Requests
{- "clientId": "string",
- "created": "2017-03-28T01:11:10.000Z",
- "expiresAt": "2019-08-24T14:15:22Z",
- "id": "oar579Mcp7OUsNTlo0g3",
- "lastUpdated": "2019-08-24T14:15:22Z",
- "scopes": [
- "offline_access"
], - "status": "ACTIVE",
- "userId": "00u5t60iloOHN9pBi0h7",
- "_embedded": {
- "scopes": [
- {
- "description": "Requests a refresh token by default, used to obtain more access tokens without re-prompting the user for authentication",
- "displayName": "string",
- "id": "scppb56cIl4GvGxy70g3",
- "name": "offline_access",
- "_links": {
- "scope": {
- "title": "offline_access"
}
}
}
]
}, - "_links": {
- "self": {
- "hints": {
- "allow": [
- "DELETE"
]
}, - "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
}, - "revoke": {
- "hints": {
- "allow": [
- "DELETE"
]
}
}, - "user": {
- "title": "SAML Jackson"
}, - "authorizationServer": {
- "title": "Example Authorization Server"
}
}
}
okta.users.manage
Revokes the specified refresh Token
No Content
Forbidden
Not Found
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}