Begin OAuth2 flow
GET/oauth/authorize
Redirects the end user to the authorization page
Request
Query Parameters
Possible values: [code
]
Which authorization flow to use
Client ID
Redirect URI (must match the one configured for the client)
Possible values: [full_name
, email
, vatsim_details
, country
]
Space-separated list of requested scopes
Value used to maintain state between the request and the callback
Possible values: [none
, login
, consent
]
How to prompt the user for reauthentication and/or consent
By default, the authorization server will not prompt the user for reauthentication and will not prompt for consent if they have already given it.
none
will cause the request to return an error if the user is not
already logged in and has not given consent to the requested scopes.
login
will force the user to reauthenticate even if they are
already signed in.
consent
will cause the authorization server to prompt the user to
consent to the requested scopes even if they have already done so.
Responses
- 302
- 400
- 401
Redirect to authorization page
Bad request
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [invalid_request
, invalid_client
, invalid_grant
, unauthorized_client
, unsupported_grant_type
]
Error code
Human-readable text providing additional information
Human-readable text providing additional information
Troubleshooting hint for the client developer
{
"error": "invalid_request",
"error_description": "string",
"hint": "string"
}
Invalid client ID
- application/json
- Schema
- Example (from schema)
- Example
Schema
Possible values: [invalid_request
, invalid_client
, invalid_grant
, unauthorized_client
, unsupported_grant_type
]
Error code
Human-readable text providing additional information
Human-readable text providing additional information
Troubleshooting hint for the client developer
{
"error": "invalid_request",
"error_description": "string",
"hint": "string"
}
{
"error": "invalid_client",
"error_description": "Client authentication failed",
"message": "Client authentication failed"
}