Federated Identity
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.
Technical Architecture & Deep-Dive
B2B SaaS commonly federates with customer IdPs while still maintaining local tenant records. You map external subject IDs to internal user rows, sync groups to roles, and enforce MFA policies at the IdP.
API security requires translating federation outcomes into machine-readable auth: validated ID tokens, signed session cookies, or service-specific access tokens with tenant isolation. Never trust unverified email domains or unsigned SAML responses.
Key Architectural Benefits
Implement Federated Identity at the Edge
Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.
Frequently Asked Questions
Q:What is the difference between federation and SSO?
SSO is the user experience of one login for many apps. Federation is the trust framework between organizations and IdPs that makes SSO work.
Related Architecture Concepts
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.
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.
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.