oauth2_access_tokens_list
GET/oauth2/access_tokens/
AccessToken Viewset
Request
Query Parameters
Which field to use when ordering the results.
A page number within the paginated result set.
Number of results to return per page.
A search term.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
pagination
object
required
results
object[]
required
provider
object
required
OAuth2Provider Serializer
Flow used for authentication when the associated application is accessed by an un-authenticated user.
Flow used when authorizing this provider.
Get object component so that we know how to edit the object
Internal application name, used in URLs.
Application's display Name.
Internal application name, used in URLs.
Application's display Name.
Return object's verbose_name
Return object's plural verbose_name
Return internal model name
Possible values: [confidential
, public
]
Possible values: <= 255 characters
Possible values: <= 255 characters
Access codes not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
Tokens not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
Tokens not valid on or after current time + this value (Format: hours=1;minutes=2;seconds=3).
Include User claims from scopes in the id_token, for applications that don't access the userinfo endpoint.
Key used to sign the tokens. Only required when JWT Algorithm is set to RS256.
Enter each URI on a new line.
Possible values: [hashed_user_id
, user_id
, user_uuid
, user_username
, user_email
, user_upn
]
Possible values: [global
, per_provider
]
user
object
required
User Serializer
Possible values: <= 150 characters
User's display name.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
groups_obj
object[]
nullable
required
Get a numerical, int32 ID for the group
Possible values: <= 80 characters
Users added to this group will be superusers.
attributes
object
Possible values: <= 254 characters
User's avatar, either a http/https URL or a data URI
attributes
object
Possible values: [internal
, external
, service_account
, internal_service_account
]
Check if token is expired yet.
Get the token's id_token as JSON String
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"pk": 0,
"provider": {
"pk": 0,
"name": "string",
"authentication_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorization_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"property_mappings": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"component": "string",
"assigned_application_slug": "string",
"assigned_application_name": "string",
"assigned_backchannel_application_slug": "string",
"assigned_backchannel_application_name": "string",
"verbose_name": "string",
"verbose_name_plural": "string",
"meta_model_name": "string",
"client_type": "confidential",
"client_id": "string",
"client_secret": "string",
"access_code_validity": "string",
"access_token_validity": "string",
"refresh_token_validity": "string",
"include_claims_in_id_token": true,
"signing_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"redirect_uris": "string",
"sub_mode": "hashed_user_id",
"issuer_mode": "global",
"jwks_sources": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
]
},
"user": {
"pk": 0,
"username": "string",
"name": "string",
"is_active": true,
"last_login": "2024-09-27T14:26:18.295Z",
"is_superuser": true,
"groups": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"groups_obj": [
{
"pk": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"num_pk": 0,
"name": "string",
"is_superuser": true,
"parent": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"parent_name": "string",
"attributes": {}
}
],
"email": "user@example.com",
"avatar": "string",
"attributes": {},
"uid": "string",
"path": "string",
"type": "internal",
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"is_expired": true,
"expires": "2024-09-27T14:26:18.295Z",
"scope": [
"string"
],
"id_token": "string",
"revoked": true
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
{
"detail": "string",
"code": "string"
}