CLOUD CONCEPT

Identity Federation

Identity federation allows one security domain to accept identities authenticated by a trusted identity provider instead of maintaining separate credentials for them.

Cloud Concepts Hub →

What is Identity Federation

Federation separates where an identity is authenticated from where that identity accesses resources, using established trust and verifiable identity assertions or tokens. It enables centralized sign-in for employees, customers, and workloads while letting each application or cloud account retain control over authorization.

Identity federation is a trust arrangement between an identity provider, which authenticates an identity, and a relying party, which accepts evidence of that authentication. Instead of creating a separate password for every cloud account or application, an organization can use its existing identity system. The relying party validates the evidence and maps the identity to a local account, application session, role, or set of permissions. Federation does not require copying the identity's password into the destination system.

A typical flow begins when an engineer opens a cloud access portal and is redirected to the corporate identity provider. After authentication, potentially including multi-factor authentication, the provider issues a signed assertion or token. The relying party checks the signature, issuer, intended audience, validity period, and other required claims before accepting it. SAML 2.0 and OpenID Connect are common federation protocols. OAuth 2.0 primarily addresses delegated authorization; OpenID Connect adds an identity layer, so an arbitrary OAuth access token should not be treated as proof of user identity.

For workforce access in AWS, IAM Identity Center can connect to an external identity provider and assign users or groups access to accounts through permission sets. Those assignments result in access through IAM roles rather than requiring an IAM user for every employee in every account. SAML handles sign-in federation, while SCIM can provision and synchronize users and groups; provisioning and authentication are different functions. Direct SAML federation to IAM roles is another option, with AWS Security Token Service issuing temporary credentials through AssumeRoleWithSAML.

Federation also applies to applications and systems. A deployment pipeline can present an OpenID Connect token to AWS STS using AssumeRoleWithWebIdentity, avoiding a stored, long-lived AWS access key. Its role trust policy should constrain the trusted provider, audience, and subject, such as a specific repository and deployment environment. Customer-facing applications can use Amazon Cognito user pools to federate sign-in from external providers. Cognito identity pools serve a different purpose: they can exchange supported identity tokens for temporary AWS credentials. For workloads outside AWS, IAM Roles Anywhere uses trusted X.509 certificates to obtain temporary role credentials rather than relying on an interactive human login.

Authentication establishes who the caller is; authorization determines what that caller may do. An IAM role trust policy controls which principals can assume the role and under what conditions. The role's permissions policies define allowed actions, subject to other applicable controls such as service control policies, permissions boundaries, session policies, and explicit denies. A successful federated login therefore does not guarantee access to a resource. Amazon Verified Permissions addresses application authorization using policies and identity context; it is not a replacement for an identity provider or IAM authorization of AWS API calls.

Cross-account role assumption is a related trust pattern, but not every cross-account request involves external identity federation. For a principal in one AWS account to assume a role in another, the caller needs permission to call AssumeRole and the destination role must trust the caller. Some services also support direct cross-account access through resource-based policies without assuming a destination role. Evaluate the actual principal and the applicable identity and resource policies. IAM paths help organize identities and roles, but do not create security boundaries by themselves.

MFA strengthens authentication but is not itself federation. With an external identity provider, enforce MFA there and verify how authentication assurance is represented and checked downstream. Do not assume that IAM MFA condition keys automatically reflect MFA performed by an external provider. Likewise, single sign-on is a user experience that federation can enable, not a synonym for every federation deployment.

Federation reduces password duplication and long-lived credential exposure, but concentrates risk and availability dependencies in the identity provider and trust configuration. Restrict accepted issuers and claims, protect signing keys, rotate certificates safely, use suitable session durations, and preserve attributable session identities in audit logs. Disabling a user at the provider does not necessarily invalidate already-issued application sessions or AWS temporary credentials immediately. Troubleshooting should distinguish failed authentication, invalid assertions, failed role assumption, and denied resource access; common causes include expired certificates, clock skew, audience mismatches, incorrect claim mappings, missing assignments, and restrictive policies.

Key aspects of Identity Federation

Federation combines trusted identity evidence, centralized authentication, and destination-controlled permissions to provide access without duplicating long-lived credentials.

Trust across identity domains

A relying party accepts identity evidence only from configured, trusted providers. Validate signatures, issuer, audience, expiration, and relevant claims rather than accepting a token merely because it is well formed.

Centralized authentication with local authorization

The identity provider authenticates the caller, while each destination controls access to its resources. Map trusted identities or groups to narrowly scoped roles and application permissions.

Temporary sessions and credentials

Federated access commonly produces application sessions or short-lived cloud credentials instead of permanent access keys. Set session lifetimes according to operational needs and account for sessions that can outlive a user's disablement at the identity provider.

Human and workload identities

Employees and customers can federate through interactive sign-in, while workloads can use trusted tokens or certificates. Choose authentication methods that fit the caller rather than embedding a human password in automation.

Explicit permission and trust boundaries

Permission to assume a role and permission to use resources are separate decisions. Review role trust policies, role permissions, resource policies, and organization-level controls together when diagnosing access.

Authentication assurance and lifecycle management

Enforce appropriate MFA at the authenticating provider and verify how its assurance reaches downstream systems. Manage provisioning, deprovisioning, signing-key rotation, and session revocation separately from the sign-in protocol.

Cloud services for Identity Federation

For workforce access, IAM Identity Center connects centralized identities to AWS account assignments and permission sets. IAM supplies the roles, trust policies, and permissions that define account access, while AWS STS issues temporary credentials for supported federation and role-assumption flows. Amazon Cognito addresses customer-facing application sign-in and, through identity pools, can provide temporary AWS access. IAM Roles Anywhere supports certificate-authenticated workloads outside AWS. Applications can use Amazon Verified Permissions to evaluate their own authorization rules after authentication. These services serve distinct purposes: establishing identity, creating a cloud session, and deciding which actions that session or application user may perform.

Amazon Cognito image Amazon Cognito

User pools support application sign-in and federation with supported external identity providers. Identity pools can provide temporary AWS credentials for supported identities; user-pool tokens are not themselves AWS API credentials.

Open Amazon Cognito →
Amazon Verified Permissions

Evaluates application authorization policies using Cedar after an identity has been established. Supported identity-source integrations can map token claims into authorization context, but the service does not replace authentication or grant IAM permissions for AWS resources.

Open Amazon Verified Permissions →