OAuth2

创建OAuth2提供商

创建新的OAuth2提供商配置

post/oauth2/providers

Request

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

Request body

authUrlstring required
avatarFieldstring
clientIdstring required
clientSecretstring required
defaultLevelinteger
displayNamestring required
emailFieldstring
enabledboolean
levelMappingobject
maxRegistrationsinteger
namestring required
nicknameFieldstring
providerType'preset' | 'generic' required

preset 或 generic

redirectUrlstring required
sortinteger
tokenUrlstring required
trustLevelFieldstring
userIdFieldstring
userInfoUrlstring required
usernameFieldstring

Response

OK

codeinteger
messagestring
msgstring

Changes

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