mirror of
https://github.com/wso2/open-mcp-auth-proxy.git
synced 2025-06-28 01:23:30 +00:00
Update the README file
This commit is contained in:
parent
6a1c9c5883
commit
5c22f36ddc
2 changed files with 11 additions and 13 deletions
22
README.md
22
README.md
|
@ -10,7 +10,7 @@ A lightweight authorization proxy for Model Context Protocol (MCP) servers that
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## What it Does?
|
## 🛡️ What it Does?
|
||||||
|
|
||||||
- Intercept incoming requests
|
- Intercept incoming requests
|
||||||
- Validate authorization tokens
|
- Validate authorization tokens
|
||||||
|
@ -106,18 +106,18 @@ asgardeo:
|
||||||
client_id: "<client_id>" # Client ID of the M2M app
|
client_id: "<client_id>" # Client ID of the M2M app
|
||||||
client_secret: "<client_secret>" # Client secret of the M2M app
|
client_secret: "<client_secret>" # Client secret of the M2M app
|
||||||
|
|
||||||
resource_identifier: "http://localhost:8080" # URL of the MCP proxy server
|
resource_identifier: "http://localhost:8080"
|
||||||
|
scopes_supported:
|
||||||
|
- "read:tools"
|
||||||
|
- "read:resources"
|
||||||
|
audience: "<audience_value>"
|
||||||
authorization_servers:
|
authorization_servers:
|
||||||
- "https://example.idp.com" # Base URL of the identity provider
|
- "https://api.asgardeo.io/t/acme"
|
||||||
jwks_uri: "https://example.idp.com/.well-known/jwks.json"
|
jwks_uri: "https://api.asgardeo.io/t/acme/oauth2/jwks"
|
||||||
bearer_methods_supported:
|
bearer_methods_supported:
|
||||||
- header
|
- header
|
||||||
- body
|
- body
|
||||||
- query
|
- query
|
||||||
# Protect the MCP endpoints with per-path scopes:
|
|
||||||
scopes_supported:
|
|
||||||
"/message": "mcp_proxy:message"
|
|
||||||
"/resources/list": "mcp_proxy:read"
|
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Start the proxy with Asgardeo integration:
|
4. Start the proxy with Asgardeo integration:
|
||||||
|
@ -245,9 +245,9 @@ asgardeo:
|
||||||
client_id: "<client_id>"
|
client_id: "<client_id>"
|
||||||
client_secret: "<client_secret>"
|
client_secret: "<client_secret>"
|
||||||
resource_identifier: "http://localhost:8080"
|
resource_identifier: "http://localhost:8080"
|
||||||
scopes_supported: # Define the required scopes for the MCP server
|
scopes_supported:
|
||||||
"tools": "read:tools"
|
- "read:tools"
|
||||||
"resources": "read:resources"
|
- "read:resources"
|
||||||
audience: "<audience_value>"
|
audience: "<audience_value>"
|
||||||
authorization_servers:
|
authorization_servers:
|
||||||
- "https://api.asgardeo.io/t/acme"
|
- "https://api.asgardeo.io/t/acme"
|
||||||
|
|
|
@ -4,8 +4,6 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
logger "github.com/wso2/open-mcp-auth-proxy/internal/logging"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type TokenClaims struct {
|
type TokenClaims struct {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue