Secure OAuth patterns for Snowflake Cortex AI through Amazon Bedrock AgentCore
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.
First seen by Oriel on .
AI summary
This AWS post compares three OAuth patterns for connecting Amazon Bedrock AgentCore Gateway to Snowflake Cortex AI through the Snowflake-managed MCP server.
- Snowflake OAuth uses authorization_code with per-user consent, while external-IdP patterns support either three-legged authorization_code or two-legged client_credentials authentication.
- Amazon Bedrock AgentCore Identity brokers credentials, stores tokens, binds them to users, and automatically fetches, caches, and refreshes tokens.
- Three-legged external OAuth preserves individual user attribution through corporate SSO, whereas two-legged OAuth uses a shared Snowflake service user for machine-to-machine workloads.
- Snowflake OAuth access tokens default to 600 seconds, with refresh-token validity configurable up to 90 days.
- Snowflake-specific controls include role-scoped consent, BLOCKED_ROLES_LIST, OAUTH_USE_SECONDARY_ROLES, issuer locking, and QUERY_HISTORY identity attribution.
#oauth #snowflake cortex #amazon bedrock #model context protocol
Generated by gpt-5.6-sol. Check the original for details.
Aliases
| Source | External ID | URL |
|---|---|---|
| AWS Machine Learning Blog | 9736c230ccaae3f0cbc3f54ebe3678c8b1d6632f | https://aws.amazon.com/blogs/machine-learning/secure-oauth-patterns-for-snowflake-cortex-ai-through-amazon-bedrock-agentcore/ Read discussion |