Federated identity enables users to authenticate once and access multiple systems across organizational boundaries using standardized protocols like SAML and OIDC.
Federated identity management allows users to use a single set of credentials to access systems and applications across multiple organizations or domains. It relies on trust relationships between identity providers and service providers using standardized protocols like SAML, OAuth 2.0, and OpenID Connect to exchange authentication and authorization assertions securely.
Single sign-on typically operates within a single organization or domain, while federation extends trust across organizational boundaries. Federation enables a user authenticated by their employer's identity provider to access a partner organization's application without creating separate credentials. Both reduce password fatigue, but federation addresses cross-domain trust challenges.
Federation introduces risks including token theft, assertion replay attacks, misconfigured trust relationships, and identity provider compromise. A breach of the identity provider affects all federated service providers simultaneously. Organizations must implement proper token validation, enforce short assertion lifetimes, and monitor for anomalous authentication patterns across the federation.
Testers assess SAML assertion handling for XML signature wrapping attacks, token expiration enforcement, redirect URI validation in OAuth flows, and scope escalation vulnerabilities. They verify that service providers properly validate issuer identity and that assertion consumption endpoints resist injection. Testing also covers account linking logic and privilege mapping between federated domains.
SAML is an XML-based framework for exchanging authentication and authorization data between parties. The identity provider authenticates the user and issues a signed SAML assertion containing identity attributes. The service provider validates the assertion signature, checks conditions, and grants access. SAML is widely used in enterprise environments for web-based single sign-on.
OAuth 2.0 is an authorization framework that enables third-party applications to access resources on behalf of a user without exposing credentials. In federated scenarios, OAuth facilitates delegated authorization, allowing users to grant limited access to their resources across services. OpenID Connect extends OAuth 2.0 to provide standardized identity verification capabilities.
Organizations should enforce multi-factor authentication on the identity provider, implement conditional access policies based on device health and location, monitor for brute force and credential stuffing attacks, and maintain strict administrative access controls. Regular audits of federation trust configurations and prompt deprovisioning of inactive accounts are also critical.
Just-in-time provisioning automatically creates user accounts in the service provider when a user first authenticates through federation. This eliminates the need for manual account creation and ensures accounts exist only for active users. Organizations should combine JIT provisioning with automated deprovisioning through SCIM to maintain accurate identity lifecycle management.