AWS Details Okta-Managed Authorization for AI Agents Accessing AWS MCP Server

· Original article ↗

Summary

AWS Sign-In's Enterprise-Managed Authorization uses Okta-issued ID-JAG assertions to grant AI agents short-lived OAuth access to AWS MCP Server through IAM roles, with setup guidance, CloudTrail auditing, and least-privilege recommendations.

Key points

  • Okta evaluates enterprise access policies and can issue a short-lived, signed ID-JAG assertion when an AI application requests access to AWS MCP Server.
  • AWS Sign-In validates the assertion and exchanges it for an OAuth access token associated with an IAM role; that role’s policies govern the agent’s AWS operations.
  • The walkthrough configures Okta as an OIDC identity provider, creates an IAM role, sets up Cross-App Access, and connects Claude to AWS MCP Server.
  • AWS recommends short-lived assertions, tenant-specific IdP issuers, IAM condition keys to restrict approved OAuth clients and grant types, and least-privilege role permissions.
  • Administrators can use CloudTrail to review OAuth token issuance and subsequent MCP activity, correlating API calls with the same session ARN.

Article Details

Defense Focus
Monitor and constrain enterprise-managed AI-agent authorization to AWS resources, ensuring OAuth token issuance and subsequent AWS operations match approved IdP policies and IAM permissions.
Detection Methods
  • In AWS CloudTrail Event history, filter for event source signin.amazonaws.com or event name CreateOAuth2Token to review OAuth token issuance.
  • Review token-event details for the OAuth client identifier, target resource, grant type, and issuance status where recorded.
  • Correlate subsequent aws-mcp.amazonaws.com activity with the same sign-in session ARN and verify that operations comply with the associated IAM role permissions.
  • Test authorization controls by attempting an operation outside the role’s permissions and by using an employee not authorized in Okta; confirm both attempts are denied.
Data Sources
  • AWS CloudTrail Event history
  • CloudTrail events with event source signin.amazonaws.com and event name CreateOAuth2Token
  • CloudTrail events from aws-mcp.amazonaws.com correlated by sign-in session ARN
  • Recorded OAuth client identifier, target resource, grant type, token issuance status, and subsequent AWS API operations
Platforms
  • AWS
Defensive Actions
  • Configure enterprise IdPs to issue short-lived ID-JAG assertions.
  • Use tenant-specific IdP issuer URLs to establish explicit trust relationships.
  • Use IAM condition keys to restrict token issuance to approved OAuth clients, grant types, and AWS resources; scope permissions to the AWS MCP Server service principal.
  • Apply least-privilege IAM permissions to agent roles and grant only the AWS operations required.
  • Review CloudTrail token-issuance and subsequent MCP activity, and validate access restrictions with authorized and unauthorized test cases.

Vendors

Products

Countries

Related Articles