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.
Staff, many accounts
Staff, one account, SAML provider
- IAM SAML provider and role
App users, social or own sign-up
Staff in on-premises Active Directory
| Who signs in | Best fit |
|---|---|
| Staff, many accounts | |
| Staff, one account, SAML provider | IAM SAML provider and role |
| App users, social or own sign-up | |
| Staff in on-premises Active Directory |
- 1The user signs in at the identity provider.
- 2The provider returns a SAML assertion or OIDC token, which is exchanged with STS.
- 3STS returns temporary credentials for a role. The user reaches AWS resources.
Step by step
- 1The user signs in at the identity provider.
- 2The provider returns a SAML assertion or OIDC token, which is exchanged with STS.
- 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.
Do not mix it up with
AWS IAM Identity CenterWorkforce sign-in for all accounts: one identity source, permission sets, and no IAM users.
Amazon CognitoUser pool for sign-in and tokens, identity pool for AWS credentials, and the integrations that use them.
AWS Directory ServiceChoose Managed Microsoft AD, AD Connector, Simple AD or Cognito by where users live and what the apps need.
In this task · 1.1
- Shared responsibility model
- Root user and MFA
- Users, groups and roles: authorization model
- Policy evaluation and conditions
- Least privilege in practice
- STS, role switching and cross-account access
- Resource-based policies
- Service control policies
Organizations
Control Tower
IAM Identity Center
- Federating identities into IAM
Directory Service
RAM
- Regions and AZs as the HA building block
- Placing resources