1. Docs
  2. API Reference
  3. OAuth2 authorization endpoint

OAuth2 authorization endpoint

GET/oauth/authorize

OAuth2/OIDC authorization endpoint (GET /oauth/authorize). Validates client_id, redirect_uri, response_type (code only), and code_challenge_method (S256 only) against the client's registered values, then serves the hosted login page bound to the client's Environment. When the Environment has a default end-user SSO connection the browser is redirected straight to the IdP; ?method=code opens the passwordless email-OTP view. Returns 400 with an inline error page on invalid parameters.

Query Parameters

client_idstring Required
redirect_uristring Required
response_typestring Required
scopestring Required
statestring Required
code_challengestring Required
code_challenge_methodstring Required
methodstring Required

Responses

200
Request
curl -X GET "https://auth.canopy-io.com/oauth/authorize?client_id=value&redirect_uri=value&response_type=value&scope=value&state=value&code_challenge=value&code_challenge_method=value&method=value"
Response
HTTP/1.1 200

(empty body)
Related endpoints Was this page helpful?

Tell us how we can improve this guide.