Elysia MCP Adapterelysia-mcp-adapter
MCP ExtensionsAuthorization

Authorization configuration

Resource metadata, token verification, scopes, and optional authorization profiles.

Extension options

OptionMeaning
resourceCanonical HTTPS MCP endpoint URI; localhost HTTP is allowed for development.
authorizationServersTrusted authorization-server issuer URLs.
verifyAccessTokenAsync verifier returning a normalized McpAuthPrincipal.
scopesBase scopes required for every MCP request and advertised by default.
metadataRFC 9728 protected-resource metadata fields.
rootMetadataAliasExplicitly expose the origin-root well-known alias.
profilesAdvertise Client Credentials or Enterprise-Managed Authorization.
clockSkewSecondsNon-negative expiry tolerance.

Use authorization.requiredScopes on tools, resources, prompts, or route MCP metadata. Unauthorized primitives are removed from list results and checked again during call/read/get. Missing or invalid credentials return 401; insufficient scope returns 403 with authoritative scope and resource_metadata parameters.

The original Authorization header is preserved for internal Elysia route invocation so existing application guards remain authoritative. Explicit MCP handlers should use the normalized authorization context instead of rereading the raw header.

Client Credentials

Enable profiles.clientCredentials only when the external authorization server preregisters confidential clients, supports client_credentials, binds tokens to the canonical resource, and applies least privilege and credential rotation. The profile changes discovery; it does not infer permissions from grant provenance.

Enterprise-Managed Authorization

Enable profiles.enterpriseManaged only when the external authorization server implements the enterprise profile, advertises ID-JAG support, and exchanges an enterprise assertion through the required JWT bearer grant. The MCP endpoint accepts only the resulting OAuth access token. It must not accept SAML assertions, ID tokens, or ID-JAGs directly.

The adapter does not host token endpoints, registration, login or consent pages, enterprise SSO, ID-JAG exchange, JWKS, token refresh/storage, or IdP provisioning.

On this page