Providers

Retrieve a provider

get

Retrieve details of a specific OAuth provider by slug.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Responses
chevron-right
200

Provider details.

application/json
get
/api/v1/oauth/{slug}/

Update a provider

put

Update the details of an existing OAuth provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Body
namestring · max: 256Optional

The name of the OAuth provider.

slugstring · max: 256Optional

A unique slug identifier for the provider.

iconstring · uriOptional

URL of the provider's icon.

client_idstring · max: 256Optional

Client ID for the OAuth provider.

client_secretstring · max: 512Optional

Client secret for the OAuth provider.

authorization_urlstring · uri · max: 512Optional

The URL for the authorization endpoint of the provider.

token_urlstring · uri · max: 512Optional

The URL for the token endpoint of the provider.

userinfo_urlstring · uri · max: 512Optional

The URL for the user information endpoint of the provider.

whiteliststring · uri[]Optional

A list of URLs whitelisted for the provider.

providerstring · enum · max: 32Optional

The type of provider. Possible values: azure, github, google, turkcell.

Possible values:
kwargsobjectOptional

Additional parameters for the provider.

is_activebooleanOptional

Indicates whether the provider is active.

Responses
chevron-right
200

Provider updated successfully.

application/json
put
/api/v1/oauth/{slug}/

Delete a provider

delete

Delete an OAuth provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Path parameters
slugstringRequired

The slug of the resource.

Example: obj_slug
Responses
delete
/api/v1/oauth/{slug}/

No content

List all providers

get

Retrieve a list of all OAuth providers. Non-superusers only see active providers.

Authorizations
AuthorizationstringRequired
Responses
chevron-right
200

A list of OAuth providers.

application/json
get
/api/v1/oauth/
200

A list of OAuth providers.

Create a new provider

post

Create a new OAuth provider. Only superusers can perform this action.

Authorizations
AuthorizationstringRequired
Body
namestring · max: 256Optional

The name of the OAuth provider.

slugstring · max: 256Optional

A unique slug identifier for the provider.

iconstring · uriOptional

URL of the provider's icon.

client_idstring · max: 256Optional

Client ID for the OAuth provider.

client_secretstring · max: 512Optional

Client secret for the OAuth provider.

authorization_urlstring · uri · max: 512Optional

The URL for the authorization endpoint of the provider.

token_urlstring · uri · max: 512Optional

The URL for the token endpoint of the provider.

userinfo_urlstring · uri · max: 512Optional

The URL for the user information endpoint of the provider.

whiteliststring · uri[]Optional

A list of URLs whitelisted for the provider.

providerstring · enum · max: 32Optional

The type of provider. Possible values: azure, github, google, turkcell.

Possible values:
kwargsobjectOptional

Additional parameters for the provider.

is_activebooleanOptional

Indicates whether the provider is active.

Responses
post
/api/v1/oauth/

Last updated

Was this helpful?