A AuthMS API Wiki API Reference iam.tianv.com →

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

启用或禁用指定的OAuth提供商。仅管理员可访问。

OAuth `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
name path string Yes 提供商名称

Request Body

Schema: dto.AdminToggleProviderRequest

FieldTypeRequiredExampleConstraintsDescription
enabled boolean No

Responses

StatusDescriptionSchema
200操作成功gitee_com_linmes_authms_base_dto.SimpleResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证:请提供有效的 Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足:需要管理员权限gitee_com_linmes_authms_base_dto.SimpleResponse
404提供商不存在gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_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