Autional Autional
API Reference GitHub autional.com →

PUT /admin/oauth/providers/{name}/toggle

Enables or disables a specified OAuth provider. Admin only.

OAuth `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
name path string Yes Provider name

Request Body

Schema: dto.AdminToggleProviderRequest

FieldTypeRequiredExampleConstraintsDescription
enabled boolean No

Responses

StatusDescriptionSchema
200Operation successfulgitee_com_linmes_authms_base_dto.SimpleResponse
400Invalid request parametersgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticated: provide a valid Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403Insufficient permissions: administrator role requiredgitee_com_linmes_authms_base_dto.SimpleResponse
404Provider not foundgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No