AWS ML BlogWednesday · June 3, 2026FREE

Building a secure auth code flow setup using AgentCore Gateway with MCP clients

awsbedrockoauthmcpsecurity

This AWS blog post details how to configure OAuth 2.0 Authorization Code flow for MCP servers using Amazon Bedrock AgentCore Gateway. The approach allows developers to integrate any OpenID Connect (OIDC) compliant identity provider, such as Okta or Azure AD, to issue identity tokens. Each request to an MCP server is validated against the token, ensuring only authenticated users can invoke AI assistants. The post includes step-by-step instructions for setting up the gateway, configuring the identity provider, and testing the flow. This setup is immediately available for all AWS regions where Amazon Bedrock AgentCore is supported. No pricing changes are announced; standard Bedrock and gateway charges apply.

// why it matters

Enables secure, identity-based access control for MCP servers in production AI assistant deployments.

Sources

Primary · AWS ML BlogMirror · AWS ML BlogMirror · AWS ML Blog
▸ Read original at aws.amazon.com

Like this? Get the next digest.

Building a secure auth code flow setup using AgentCore Gateway with MCP clients — aigest.dev