-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy path.env.example.cognito
More file actions
37 lines (32 loc) · 1.55 KB
/
.env.example.cognito
File metadata and controls
37 lines (32 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Cognito DCR OAuth Configuration Example
#
# This file shows how to configure the mcp-framework to use the Cognito DCR
# implementation for OAuth 2.1 authentication.
#
# Usage:
# 1. Register a new OAuth client using the DCR endpoint:
# cd /home/chema/projects/impulsum/visa/code/cognito-dcr/examples
# ./quick-dcr-test.sh "My MCP Server" "http://localhost:8080/oauth/callback"
#
# 2. Copy this file to .env and fill in the CLIENT_ID and CLIENT_SECRET
# from the registration output
#
# 3. Update MCP_SERVER_PORT and MCP_RESOURCE_ID as needed
# OAuth Client Credentials (from DCR registration)
CLIENT_ID=your_client_id_here
CLIENT_SECRET=your_client_secret_here
# Cognito Configuration
COGNITO_USER_POOL_ID=us-west-2_XXXXXXXX
COGNITO_REGION=us-west-2
COGNITO_DOMAIN=cognito-domain
# MCP Server Configuration
MCP_SERVER_PORT=8080
MCP_RESOURCE_ID=https://mcp.example.com
# Derived Cognito Endpoints (auto-generated in code)
# COGNITO_ISSUER=https://cognito-idp.us-west-2.amazonaws.com/us-west-2_pJpps8NA4
# COGNITO_JWKS_URI=https://cognito-idp.us-west-2.amazonaws.com/us-west-2_pJpps8NA4/.well-known/jwks.json
# COGNITO_AUTH_ENDPOINT=https://dcr-staging-78okmfo6.auth.us-west-2.amazoncognito.com/oauth2/authorize
# COGNITO_TOKEN_ENDPOINT=https://dcr-staging-78okmfo6.auth.us-west-2.amazoncognito.com/oauth2/token
# DCR Endpoints (for reference)
# DCR_REGISTRATION_ENDPOINT=https://7a03vnsj7i.execute-api.us-west-2.amazonaws.com/.well-known/oauth-registration
# DCR_METADATA_ENDPOINT=https://7a03vnsj7i.execute-api.us-west-2.amazonaws.com/.well-known/oauth-authorization-server