- Newest
- Most votes
- Most comments
Your understanding of AWS Security Token Service (STS) is partially correct, but it's not entirely accurate to describe STS as an authorization-only service. STS plays a crucial role in both authentication and authorization processes within the AWS ecosystem.
STS is primarily responsible for issuing temporary security credentials, which are used for both authentication and authorization. When you use STS operations like AssumeRole, AssumeRoleWithSAML, or AssumeRoleWithWebIdentity, you're essentially requesting temporary security credentials that can be used to access AWS resources.
You're correct that in many cases, the entity making the STS call is already authenticated by another system. For example:
- With AssumeRoleWithSAML or AssumeRoleWithWebIdentity, the user is authenticated by a third-party identity provider.
- For IAM users using AssumeRole, they're authenticated via their long-term AWS credentials.
- For IAM roles, they're using existing temporary credentials to assume another role.
However, STS is still involved in the authentication process because it validates the incoming identity and issues new temporary credentials. These credentials are then used for both authentication and authorization when accessing AWS services.
Regarding AWS IAM Identity Center (formerly AWS Single Sign-On), it works in conjunction with STS to provide a streamlined authentication and authorization experience. IAM Identity Center manages user identities and their access to AWS accounts and applications. When a user signs in through IAM Identity Center, it uses STS behind the scenes to obtain temporary credentials for the user, which are then used to access AWS resources.
In summary, while STS doesn't perform the initial authentication in many scenarios, it's not accurate to call it an authorization-only service. It plays a crucial role in both authentication and authorization by issuing and validating temporary security credentials used to access AWS resources.
Sources
Identity-enhanced IAM role sessions - AWS IAM Identity Center
Compare AWS STS credentials - AWS Identity and Access Management
Actions - AWS Security Token Service
Relevant content
- asked a year ago
- asked 2 years ago
- asked 3 years ago

Can you give an example of when STS actually authenticates a user? If necessary, provide a step-by-step example of a user authenticating, and then authorizing and performing actions in AWS, and in this example explain when an authentication is performed, when there's authorization, and which service is responsible for each.