1. Docs
  2. Authentication

Authentication

How identities sign in. Canopy gives you two paths into the same platform, pick the one that matches how much of the login UI your app wants to own.

Overview

Authentication in Canopy means turning a user's credentials (email + password, an SSO redirect, an invite token) into a signed access token your app can trust. The platform handles password hashing, email verification, password reset, MFA, refresh tokens, and session revocation. Your app delegates as much or as little of that ceremony as you want, then verifies the resulting JWT against a public JWKS endpoint. An identity has to reach the Active state and have valid credentials to authenticate — pre-provisioned identities at the Account layer with no password or federation hint stay in the Pending state and can't sign in until credentials are set. See the Identities overview for the lifecycle and the three-layer model.

Two paths

Shared infrastructure

Whichever path you pick, the same infrastructure backs both:

RS256-signed JWTs that carry the identity plus its Account / Application / Environment context, verifiable locally via the JWKS endpoint at /.well-known/jwks.json.Refresh tokens with optional rotation, swap a long-lived refresh token for a fresh access token without re-authenticating.Server-side sessions Canopy tracks each authenticated session and exposes a logout endpoint that revokes both the session and any active tokens.Federated / SSO identities via the external_id field on identities, map your own auth system or an upstream IdP to a Canopy identity.
Environment
On this page