Single Sign-On (SSO)
Single sign-on (SSO) lets a user authenticate once with an identity provider and access multiple applications without signing in again. SSO protocols such as SAML, OpenID Connect, and Kerberos exchange trust artifacts that downstream apps validate to create local sessions.
Technical Architecture & Deep-Dive
SSO improves security operations: MFA enforcement, session revocation, and provisioning happen centrally. Each application still needs to validate tokens or assertions and map identities to authorization rules.
For API-heavy products, SSO at the SPA is only the first hop. Backend services should not trust frontends blindly. An edge gateway validates OIDC ID tokens or session cookies, issues internal service tokens, and forwards only authenticated traffic to upstream APIs.
Key Architectural Benefits
Implement Single Sign-On (SSO) at the Edge
Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.
Frequently Asked Questions
Q:Does SSO automatically secure my REST API?
No. SSO establishes user identity. Every API route still needs authentication, authorization, rate limits, and input validation.
Related Architecture Concepts
SAML single sign-on (SSO) is an XML-based federation protocol where an identity provider (IdP) authenticates the user and sends a signed SAML assertion to a service provider (SP). The SP trusts the assertion to create a session without handling the user password directly.
Federated identity lets applications trust user authentication performed by an external identity provider instead of storing local passwords. Protocols such as SAML, OpenID Connect, and SCIM provisioning exchange trusted assertions, tokens, and directory attributes.
OpenID Connect (OIDC) is an identity layer built on OAuth 2.0 that lets applications verify who a user is. Alongside an access token, the identity provider issues a signed ID token, a JWT containing claims such as the user ID, email, and authentication time.
OAuth 2.0 is an authorization framework that lets an application obtain limited access to a user account on another service without handling the user password. The user approves requested scopes, and the application receives an access token it uses to call the service API.
Ready-to-Use Edge Recipes
Clerk session and Firebase FCM registration merged at startup. For "stitch firebase with clerk session bootstrap", store FIREBASE_ACCESS_TOKEN, CLERK_SECRET_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React Native hit only https://realcomposer.com/v1/workspace/stitch-firebase-with-clerk-bootstrap with an rc_live_ client token.
Firebase ID token lookup and Supabase profile row merged at edge. For "combine firebase auth user with supabase profile endpoint", store FIREBASE_ACCESS_TOKEN, SUPABASE_SERVICE_ROLE_KEY in Secret Vault, call https://firestore.googleapis.com/v1/projects/{{query.projectId}}/databases/(default)/documents/{{query.collection}}/{{query.docId}} from a Worker, and let React / Flutter / Mobile hit only https://realcomposer.com/v1/workspace/combine-firebase-auth-with-supabase-profile with an rc_live_ client token.
Never place CLERK_SECRET_KEY inside Frontend / Web source. RealComposer injects them when calling https://api.clerk.com/v1/users/{{query.userId}}, so browsers see only a client token.