概念
Identity federation
Sign in to AWS with an identity you already have, instead of creating new users in AWS.
本课尚未翻译,暂以英文显示。
- 1The employee signs in with the company login they already use.
- 2The identity provider sends AWS a signed message that says who the user is.
- 3AWS trusts the provider, so the user gets temporary credentials and opens the console.
分步说明
- 1The employee signs in with the company login they already use.
- 2The identity provider sends AWS a signed message that says who the user is.
- 3AWS trusts the provider, so the user gets temporary credentials and opens the console.
Local users
- 示例
- IAM users created inside one AWS account
- AWS service
IAM
Workforce federation
- 示例
- Staff sign in with their company login
- AWS service
IAM Identity Center
Customer identities
- 示例
- App users sign up, or sign in with Google or Apple
- AWS service
Cognito
Microsoft Active Directory
- 示例
- Windows users and computers kept in AD
- AWS service
Directory Service
| Type | 示例 | AWS service |
|---|---|---|
| Local users | IAM users created inside one AWS account | |
| Workforce federation | Staff sign in with their company login | |
| Customer identities | App users sign up, or sign in with Google or Apple | |
| Microsoft Active Directory | Windows users and computers kept in AD |
1 / 2
Local users
- 示例
- IAM users created inside one AWS account
- AWS service
IAM
Workforce federation
- 示例
- Staff sign in with their company login
- AWS service
IAM Identity Center
| Type | 示例 | AWS service |
|---|---|---|
| Local users | IAM users created inside one AWS account | |
| Workforce federation | Staff sign in with their company login |
2 / 2
Customer identities
- 示例
- App users sign up, or sign in with Google or Apple
- AWS service
Cognito
Microsoft Active Directory
- 示例
- Windows users and computers kept in AD
- AWS service
Directory Service
| Type | 示例 | AWS service |
|---|---|---|
| Customer identities | App users sign up, or sign in with Google or Apple | |
| Microsoft Active Directory | Windows users and computers kept in AD |
是什么
Identity federation means that AWS trusts another system to say who a user is. That system is an identity provider (IdP), such as a company directory, Okta, Microsoft Entra ID or a Google account. The user signs in there, and AWS accepts the result. No IAM user is created, and no long-term AWS password or access key is handed out.
Federation uses open standards such as SAML 2.0 and OpenID Connect (OIDC). After sign-in, the user gets temporary credentials through an IAM role. When someone leaves the company and is removed from the directory, they can no longer sign in to AWS either.
是什么
The right AWS service depends on who signs in. For your workforce, use IAM Identity Center. For the customers of your web or mobile app, use Amazon Cognito. To use Microsoft Active Directory with AWS services, use AWS Directory Service.
要记住
- Users are managed in one place and use the same login for AWS.
- Federated users get temporary credentials through a role.
- SAML 2.0 is common for workforce sign-in. OIDC and social logins are common for apps.
- A user removed from the identity provider can no longer sign in to AWS.
- AWS recommends federation for people, instead of IAM users.
考试中
- “Employees should sign in to AWS with their existing corporate credentials” points to identity federation, usually through IAM Identity Center.
- “Let app users sign in with Google, Apple or Facebook” points to federation through Amazon Cognito.
别和这些弄混
AWS IAM Identity CenterOne place to manage your workforce’s sign-in to all your AWS accounts and business applications.
Amazon CognitoAdds sign-up, sign-in and access control to your own web and mobile apps, and scales to millions of users.
AWS Directory ServiceRuns Microsoft Active Directory on AWS, or connects AWS services to the Active Directory you already have.