Component evidence
An authentication module that provides OAuth 2.1 proxying, token management, and security utilities for secure application access.
// Source: https://github.com/punkpeye/fastmcp | License: MIT | Copyright 2024 Frank Fiegel (frank@glama.ai)
// Provided via justclaw.it.com; keep this notice with the code.
/**
* FastMCP Authentication Module
* OAuth 2.1 Proxy for Dynamic Client Registration
*/
// Helper functions for canAccess and session extraction
export {
getAuthSession,
requireAll,
requireAny,
requireAuth,
requireRole,
requireScopes,
} from "./helpers.js";
// OAuth Proxy
export { OAuthProxy, OAuthProxyError } from "./OAuthProxy.js";
// Auth Providers
export * from "./providers/index.js";
// Constants
export {
DEFAULT_ACCESS_TOKEN_TTL,
DEFAULT_ACCESS_TOKEN_TTL_NO_REFRESH,
DEFAULT_AUTHORIZATION_CODE_TTL,
DEFAULT_REFRESH_TOKEN_TTL,
DEFAULT_TRANSACTION_TTL,
TOKEN_ENDPOINT_AUTH_METHODS,
} fr
... (truncated -- full source via MCP)