Identity Provider Configuration
SSO, OIDC, SAML-aligned identity, sessions, and how Cascades maps external identities—without prescribing a vendor.
Deployments integrate enterprise identity providers using standard patterns: OAuth 2.0 / OIDC, SAML SSO, directories (SCIM optionally), and session-backed browsers aligned to your security posture. Cascades does not require a specific commercial IdP—you choose OIDC-compliant services (Azure AD Entra ID, Google Workspace OIDC), SAML gateways, Okta, Keycloak, or similar stacks as your organization adopts them.
Reference builds of Cascades ship with libraries suitable for OIDC-hosted login flows (Auth0’s Next.js SDK is one workable pattern in the codebase today—you can substitute other OIDC gateways as integrations mature).
Canonical Auth0 identifiers (reference)
When using Auth0 as the OIDC provider, align dashboards and APIs with:
- API audience:
https://cascades.work/api— setAUTH0_AUDIENCEto this Auth0 API identifier in production (NODE_ENV=production). In development,AUTH0_AUDIENCEis optional; omitting it skips the OAuthaudienceparameter (relaxed local login). - Custom claim namespace:
https://cascades.work— use/roles(array or string) and optional/org_idfor organization scoping. The application resolvesADMINvsUSERfrom these claims.
Architectural expectations
- External identity — Assertions map to Cascades tenant users (subject, tenant/organization scopes, MFA upstream).
- Session layer — HttpOnly cookie sessions anchored to issuer metadata; refresh/revoke follows your IdP TTL.
- Role claims — Map provider groups or entitlement claims onto Cascades dashboards (
ADMIN, entitlement-sensitive routes). - Logout — End sessions at Cascades and coordinate IdP SAML/OIDC logout when required.
Compatibility notes for common stacks:
| Direction | Platforms |
|---|---|
| OIDC-focused | Azure AD Entra ID, Google Workspace OIDC, Okta, Auth0 (example), Ping, generic OIDC |
| SAML / hybrid | SAML 2 SP flows through your reverse proxy/gateway pairing with Cascades JWT bridges |
| Self-hosted SSO | Keycloak realms supplying OIDC (document claims mapping), fronted by hardened TLS ingress |
Concrete env variable names appearing in Cascades deployments often mirror AUTH0_*-style placeholders derived from OIDC issuer metadata—they should be generalized to your chosen issuer (Auth0-compatible deployments today should not imply mandatory Auth0 SKU selection).
Example reference surfaces (today’s codebase)
Certain builds wire session middleware (middleware.ts), server auth clients (lib/auth0.ts-style wrappers), /api/auth0/session JSON for SPA hydration—not because “Auth0” is fixed, but because they demonstrate verifiable integrations you can refactor toward your issuer.
Validation checklist (before GA)
- Login redirects traverse your IdP and return with expected claims.
- Logout terminates Cascades cookie sessions (+ IdP where applicable).
- Refreshing dashboards preserves authenticated principals.
- Protected routes bounce unauthenticated callers to login.
- Admin operators require uplifted entitlement claims—not default fallthrough.
Additional IdPs beyond the shipped adapters remain an integration exercise—map claims to Cascades roles accordingly.