Does Cognito token exchange guarantee least privilege automatically?
No. Cognito constrains the output to requested scopes that are also present in the subject token and allowed for the app client, and it binds the token to a resource audience. Your resource server must still validate the token and enforce its own authorization rules.
Answered in
Cognito Token Exchange Gives Agents Narrower Credentials, with One Important Trust DecisionAmazon Cognito's OAuth token exchange can bind a short-lived token to one downstream service and record an acting service in the act claim.
Read the full analysisOther questions this article answers
More system design & architecture questions
- What does Cognito's act claim identify?
- How much spare capacity should a gateway keep?
- Why are bounded queues important for availability?
- Should a load balancer always move requests away from an unhealthy server?
- Can a circuit breaker prevent every cascading failure?
- Why does pagination improve API performance beyond just 'smaller responses'?
- Why is asynchronous logging faster than writing logs synchronously?
- When does caching actually help API performance, and when doesn't it?
Every answer on Crashtech is written by the editor of the article it comes from — never auto-summarised. Browse all answers or the System Design & Architecture beat.