ladderlore
  • Type a service name, like S3 or IAM.

Concept · Builds on CLF-C02

Federating identities into IAM

Match the sign-in source to the right federation path: staff, app users or Active Directory users.

You know from Cloud Practitioner

  • Federation lets AWS trust another identity provider, so no IAM users are needed.
  • It uses SAML 2.0 and OpenID Connect.
  • Federated users get temporary credentials through a role.
Read the Cloud Practitioner lesson
Pick the path by who signs in.
User
Identity provider
STS
AWS resources
  1. 1The user signs in at the identity provider.
  2. 2The provider returns a SAML assertion or OIDC token, which is exchanged with STS.
  3. 3STS returns temporary credentials for a role. The user reaches AWS resources.
How federation ends in temporary credentials.

Step by step

  1. 1The user signs in at the identity provider.
  2. 2The provider returns a SAML assertion or OIDC token, which is exchanged with STS.
  3. 3STS returns temporary credentials for a role. The user reaches AWS resources.

How federation ends in temporary credentials.

What it is

SAML 2.0 fits enterprise identity providers and workforce sign-in. OpenID Connect (OIDC) fits web and mobile apps and social sign-in. In both, the provider proves who the user is, and STS exchanges that proof for temporary credentials through a role.

For app users, do not call AssumeRoleWithWebIdentity yourself. Use Amazon Cognito. A user pool signs users in. An identity pool turns the sign-in into AWS credentials.

What it is

For staff with many accounts, use IAM Identity Center. For staff on one account with an existing SAML provider, create an IAM SAML provider and a role. If you must integrate a system that does not speak SAML, you can build a custom identity broker, but it is the last choice.

Remember

  • SAML 2.0: workforce and enterprise IdPs. OIDC: apps and social sign-in.
  • Federated sessions come from STS. No long-term keys.
  • Staff in many accounts: IAM Identity Center.
  • App users: Cognito user pool, then identity pool for AWS credentials.

Remember

  • Active Directory users: AD Connector or a trust with AWS Managed Microsoft AD, plus Identity Center.
  • Removing a user from the directory stops new sign-ins. Sessions already started last until they expire.

On the exam

  • “Millions of mobile app users sign in with a social account and upload to S3” points to Cognito user pool and identity pool.
  • “Employees use the corporate SAML provider to reach the console” points to SAML federation, usually through IAM Identity Center.
  • “Existing on-premises Active Directory users must sign in to AWS” points to AD Connector or a trust, with Identity Center.