aws / aws/bedrock-agentcore-starter-toolkit

Using Cognito for Outbound Gateway Authentication?

Open
#171 2 comments 0 reactions 0 assignees View on GitHub
enhancement gateway
Dominant language
Python
Stars
508
Forks
155
Avg merge
8h 50m
Merged PRs (30d)
4

Description

Hi,

If you have an API that is already secured by Amazon Cognito (use by an SPA app) and you want to see if I can reuse this API as set of MCP Tools, is it possible to use Amazon Cognito for Outbound AgentCore Gateway Authentication?

I have been playing around with this a bit by trying to adapt the existing samples that use Github, Google etc using the _require_access_token_ with **USER_FEDERATION** however I now get a Cognito Redirect mismatch errors.

This seems like it would be a common use-case but no samples or documentation that I can find that??

Contributor guide

Open the contributing guide

Research direction

Review the existing authentication samples that use require_access_token with USER_FEDERATION, then trace how the Cognito redirect is configured. Done means documenting whether Amazon Cognito can authenticate Outbound AgentCore Gateway requests and providing the required configuration or a sample that avoids the redirect mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
authentication, cloud, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.