Lengthen the demo signing keys in the identity-assertion examples (#3180)
This commit is contained in:
parent
f599cdfcf9
commit
dcd9c1ee9f
3 changed files with 3 additions and 3 deletions
|
|
@ -9,7 +9,7 @@ from mcp.client.auth.extensions.identity_assertion import IdentityAssertionOAuth
|
|||
from mcp.client.streamable_http import streamable_http_client
|
||||
from mcp.shared.auth import OAuthClientInformationFull, OAuthToken
|
||||
|
||||
IDP_SIGNING_KEY = "the-enterprise-idp-signing-key"
|
||||
IDP_SIGNING_KEY = "the-enterprise-idp-signing-key-for-this-demo"
|
||||
|
||||
|
||||
class InMemoryTokenStorage:
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ from mcp.shared.auth import JWT_BEARER_GRANT_TYPE, OAuthClientInformationFull, O
|
|||
ISSUER = "https://auth.example.com/"
|
||||
MCP_SERVER = "http://localhost:8001/mcp"
|
||||
IDP_ISSUER = "https://idp.example.com"
|
||||
IDP_SIGNING_KEY = "the-enterprise-idp-signing-key"
|
||||
IDP_SIGNING_KEY = "the-enterprise-idp-signing-key-for-this-demo"
|
||||
|
||||
REGISTERED_CLIENTS = {
|
||||
"finance-agent": OAuthClientInformationFull(
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import jwt
|
|||
IDP_ISSUER = "https://idp.example.com"
|
||||
# Demo only: a real IdP signs with its private key and the authorization server verifies the
|
||||
# signature against the IdP's published JWKS. A shared HMAC secret keeps this story self-contained.
|
||||
IDP_SIGNING_KEY = "demo-idp-signing-key"
|
||||
IDP_SIGNING_KEY = "the-demo-idp-signing-key-for-this-story"
|
||||
|
||||
|
||||
def issue_id_jag(*, subject: str, client_id: str, audience: str, resource: str, scope: str) -> str:
|
||||
|
|
|
|||
Loading…
Reference in a new issue