Autional Autional
API Reference GitHub autional.com →

PUT /admin/oauth/providers/{name}

Updates configuration of a specified OAuth provider, supports partial update (only submit fields to modify). Admin only.

OAuth `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
name path string Yes Provider name

Request Body

Schema: dto.AdminUpdateProviderRequest

FieldTypeRequiredExampleConstraintsDescription
auth_url string No
client_id string No
client_secret string No
display_name string No
redirect_url string No
scopes string No
token_url string No
user_info_url string No

Responses

StatusDescriptionSchema
200Updated provider informationdto.DataResponse-dto_OAuthProviderItem
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

dto.DataResponse-dto_OAuthProviderItem

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.OAuthProviderItem No
message string No
timestamp string No

dto.OAuthProviderItem

FieldTypeRequiredExampleConstraintsDescription
auth_url string No https://github.com/login/oauth/authorize
client_id string No client-id
created_at string No 2026-04-15T10:30:00Z
display_name string No GitHub
enabled boolean No True
id string No prov_abc123
name string No github
redirect_url string No https://app.example.com/callback
scopes string No ["read:user","user:email"]
tenant_id string No tenant_abc123
token_url string No https://github.com/login/oauth/access_token
updated_at string No 2026-04-15T10:30:00Z
user_info_url string No https://api.github.com/user

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No