An administrator is configuring single sign-on (SSO) integration between an on-premises SAML 2.0 Identity Provider (IdP) and an AWS account. The administrator creates an IAM role to represent the federated users. Which action must be specified in the trust policy of this IAM role to allow the SAML provider to authenticate users?
- sts:AssumeRoleWithSAMLAnswer
- Bsts:AssumeRoleWithWebIdentity
- Csts:AssumeRole
- Dsts:AssumeRole with a Service Control Policy (SCP) attached to the root of the organization that allows access to the SAML provider
Answer
The trust policy of the IAM role must specify the action 'sts:AssumeRoleWithSAML' to allow the SAML 2.0 Identity Provider to federate users.
The correct action to configure in the trust policy for SAML 2.0 federation is 'sts:AssumeRoleWithSAML'. This allows AWS Security Token Service (STS) to validate the SAML assertion and return temporary security credentials.
Step-by-Step Solution
Key Concept
SAML 2.0 federation trust policies require the specific STS action 'sts:AssumeRoleWithSAML' to authorize external SAML identity providers.
Alternative Method
If AWS IAM Identity Center is used, the configuration of IAM role trust policies is managed automatically by the service, eliminating the need to write custom trust policies manually.
Estimated Time:45s