AI Cloud Architect

Secure OAuth patterns for Snowflake Cortex AI through Amazon Bedrock AgentCore

AWSHow-to by Nithyashree Alwarsamy, Arnab Chakraborty, James Sun and Senthil Kamala RathinamAWS Artificial Intelligence Blog

When an AI agent on Amazon Bedrock AgentCore calls Snowflake Cortex AI over MCP, how does it authenticate? This post walks through three OAuth patterns we tested on AgentCore Identity: Snowflake OAuth, three-legged OAuth with a corporate IdP, and two-legged OAuth, so you can match your organization’s identity, audit, and compliance needs.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Compares three OAuth setups for AgentCore Gateway to reach the Snowflake-managed MCP server: Snowflake OAuth per-user, three-legged with corporate IdP, and two-legged with a shared service user.

Who it is for

Architects securing agents on AgentCore that call Snowflake Cortex and must choose per-user audit or shared service identity.

Key points

  • Snowflake OAuth needs no external IdP; the 3LO external IdP pattern uses corporate SSO and MFA.
  • Two-legged pattern uses client_credentials with a shared service user and no refresh token, so it runs unattended.
  • OBO token exchange is generally available but was not tested in the post.

The same at other vendors

Timeline

  1. Read firstConnecting MCP servers to Amazon Bedrock AgentCore Gateway using Authorization Code flow · AWS · How-to
  2. This postSecure OAuth patterns for Snowflake Cortex AI through Amazon Bedrock AgentCore

Go deeper