providers_oauth2_list
GET/api/v3//providers/oauth2/
OAuth2Provider Viewset
Request
Query Parameters
access_code_validity string
access_token_validity string
application uuid
authorization_flow uuid
client_id string
client_type string
Possible values: [confidential
, public
]
Confidential clients are capable of maintaining the confidentiality of their credentials. Public clients are incapable
include_claims_in_id_token boolean
issuer_mode string
Possible values: [global
, per_provider
]
Configure how the issuer field of the ID Token should be filled.
name string
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
property_mappings uuid[]
refresh_token_validity string
search string
A search term.
signing_key uuid
sub_mode string
Possible values: [hashed_user_id
, user_email
, user_id
, user_upn
, user_username
, user_uuid
]
Configure what data should be used as unique User Identifier. For most cases, the default should be fine.
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (auto)
Schema
pagination objectrequired
results object[]required
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"pk": 0,
"name": "string",
"authentication_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"authorization_flow": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"invalidation_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",
"encryption_key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"redirect_uris": [
{
"matching_mode": "strict",
"url": "string"
}
],
"sub_mode": "hashed_user_id",
"issuer_mode": "global",
"jwt_federation_sources": [
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
],
"jwt_federation_providers": [
0
]
}
]
}
- application/json
- Schema
- Example (auto)
Schema
non_field_errorsstring[]
codestring
property name*any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (auto)
Schema
detailstringrequired
codestring
{
"detail": "string",
"code": "string"
}
Authorization: http
name: authentiktype: httpscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "/api/v3/providers/oauth2/");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());