Cloud concept · Updated

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

In short

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.

Cloud Concepts Hub →

6 key aspects of Identity Federation

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

01
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.

02
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.

03
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.

04
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.

05
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.

06
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 CognitoAmazon 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.

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.

Identity Federation exam questions

Real practice exam questions on Identity Federation, with the correct answer and its explanation. Answer them with every option in the exam simulator.

CLF-C02

A photo-sharing mobile application already authenticates customers through an OpenID Connect identity provider. After signing in, customers need temporary, limited AWS credentials to upload photos directly to Amazon S3. The company does not want to create IAM users for customers or build its own credential broker. Which solution best meets these requirements?

Show answerCORRECT ANSWER

Configure an Amazon Cognito identity pool to trust the existing identity provider and assign an IAM role with the required S3 permissions.

Amazon Cognito identity pools can exchange tokens from a supported identity provider for temporary AWS credentials. An associated IAM role defines the S3 permissions available to authenticated customers.

SOA-C03

Operations engineers access a single AWS account through a corporate SAML 2.0 identity provider (IdP) and an IAM role. The IdP authenticates engineers successfully, but AWS STS AssumeRoleWithSAML requests begin failing with an assertion signature validation error immediately after the IdP rotates its signing certificate. The IAM SAML provider still contains the metadata imported before the rotation. The role's trust policy and operational permissions have not changed.

A CloudOps engineer must restore access while continuing to validate assertions signed with the IdP's current certificate. Which action should the engineer take?

Show answerCORRECT ANSWER

Update the existing IAM SAML provider with current IdP metadata that includes the new signing certificate.

AWS uses the signing certificates in the IAM SAML provider's metadata to validate assertions from the IdP. Updating that provider with trusted, current metadata restores validation without changing the provider ARN referenced by the role's trust policy.

SAP-C03

A company acquires a business and moves its AWS accounts into the company's existing AWS organization. The company uses an organization instance of AWS IAM Identity Center connected directly to its on-premises Microsoft Active Directory. The acquired business manages its employees in an external identity provider (IdP) that supports SAML 2.0.

Both workforces must access AWS accounts through the organization's IAM Identity Center access portal, with centrally managed permission sets. Employees must continue authenticating against their existing identity systems without migrating passwords. The external IdP can broker authentication to the company's Active Directory and present identities from both workforces to downstream applications. The company must retain a single AWS organization.

Which solution meets these requirements?

Show answerCORRECT ANSWER

Configure the external IdP to broker authentication to Active Directory. Change the organization's IAM Identity Center identity source to the external IdP and establish SAML 2.0 federation. Make both workforces' users and groups available in IAM Identity Center and assign the required permission sets.

The external IdP becomes the organization's single IAM Identity Center identity source while brokering authentication for the Active Directory workforce. Both workforces can retain their existing upstream authentication systems and use the same AWS access portal and centrally managed permission sets. Users and groups must also be provisioned into IAM Identity Center for assignments.

Practice Identity Federation in a full exam

Questions on Identity Federation in each practice exam, with every answer option and an explanation for each:

Start a free practice exam

What is Identity Federation

3 min read

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.

Learn Identity Federation in lessons

9 short lessons on Identity Federation in 7 certification courses.

and 3 more lessons

Open the lessons