When you use the AWS CLI with an IAM role via an OIDC web identity provider (for workloads outside AWS), which OAuth2/OIDC flow is typically involved?

Answer

OAuth 2.0 Authorization Code flow is not used; instead AWS STS assumes a role with web identity (AssumeRoleWithWebIdentity)

Explanation

For workloads using identity federation with a web identity token, AWS typically uses STS AssumeRoleWithWebIdentity to obtain temporary credentials. This is different from typical OAuth client-secret based flows.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list