AdminsLoginOAuth2
loginOauth2
Complete an OAuth2 login by exchanging the provider authorization code for a Mist administrator session.
Path Parameters
provider*string
Oauth2 provider name
Request Body
application/json
Request Body
Request body containing a single authorization or claim code
code*string
Request-supplied authorization or claim code value
Response Body
curl -X POST "https://example.com/api/v1/login/oauth/google" \ -H "Content-Type: application/json" \ -d '{ "code": "4/S9tegDeLkrYg0L9pWNXV4cgMVbbr3SR9t693A2kSHzw" }'Empty
getOauth2AuthorizationUrlForLogin GET
Return the provider authorization URL used to start an OAuth2 login or account-linking flow. When `forward` is provided, the provider redirects back to that callback URL after authorization.
unlinkOauth2Provider DELETE
Unlink the specified OAuth2 provider from the authenticated administrator account so it can no longer be used for that account's OAuth login.