Add new OAuth2 user provider
post/auth/v3.0/user/oauth
Request
Authorization
X-AT
header
apiKey
Body
application/json
oauthProviderOne of the supported Oauth2 providers. Get supported providers using /login/oauth/supported-providers.
string
REQUIRED
redirectUriThe URL the provider will redirect to after authentication. Some providers require it, some do not, forcing us to make it required for compatibility.
string
REQUIRED
authCodeThe authorization code as returned by the provider.
string
stateThe state parameter as returned by the provider.
string
Response
200OAuth2 provider URL retrieved.
201OAuth2 provider authorized.
422Depending on the error, the response will be different.
500OAuth2 provider failed to add.
Shell cURL
shellShow schema
json