OAuth2

更新OAuth2提供商

更新OAuth2提供商配置

put/oauth2/providers/{id}

Request

  • Base URL
    http://localhost:8888/api/v1
  • URL
    http://localhost:8888/api/v1/oauth2/providers/{id}
  • Auth
    API key in header Authorization

Path parameters

idinteger required

提供商ID

Request body

authUrlstring
avatarFieldstring
clientIdstring
clientSecretstring
defaultLevelinteger
displayNamestring
emailFieldstring
enabledboolean
levelMappingobject
maxRegistrationsinteger
namestring
nicknameFieldstring
providerType'preset' | 'generic'
redirectUrlstring
sortinteger
tokenUrlstring
trustLevelFieldstring
userIdFieldstring
userInfoUrlstring
usernameFieldstring

Response

OK

codeinteger
dataunknown
messagestring
msgstring

Changes

No recorded changes to this operation across all 122 revisions of this API.