/** * postgres-mcp - Auth Module * * OAuth 2.1 authentication and authorization for PostgreSQL MCP Server. */ export type { ProtectedResourceMetadata, AuthorizationServerMetadata, ClientRegistrationRequest, ClientRegistrationResponse, JWK, JWKSDocument, TokenValidationResult, TokenClaims, ResourceServerConfig, TokenValidatorConfig, AuthServerDiscoveryConfig, } from "./types.js"; export { OAuthError, TokenMissingError, InvalidTokenError, TokenExpiredError, InvalidSignatureError, InsufficientScopeError, AuthServerDiscoveryError, JwksFetchError, ClientRegistrationError, isOAuthError, } from "./errors.js"; export { SCOPES, ALL_SCOPES, BASE_SCOPES, SCOPE_PATTERNS, TOOL_GROUP_SCOPES, parseScopes, hasScope, hasAnyScope, hasAllScopes, getScopeForToolGroup, hasDatabaseScope, hasSchemaScope, hasTableScope, getScopeDisplayName, } from "./scopes.js"; export type { StandardScope } from "./scopes.js"; export { TokenValidator, createTokenValidator } from "./token-validator.js"; export { AuthorizationServerDiscovery, createAuthServerDiscovery, } from "./authorization-server-discovery.js"; export { OAuthResourceServer, createOAuthResourceServer, } from "./oauth-resource-server.js"; export { extractBearerToken } from "./helpers.js"; export { createAuthContext, validateAuth, requireScope, requireAnyScope, requireToolScope, formatOAuthError, } from "./middleware.js"; export type { AuthenticatedContext, AuthMiddlewareConfig, } from "./middleware.js"; export { createAuthenticatedContext, validateAuth as validateAuthTransportAgnostic, formatOAuthError as formatOAuthErrorTransportAgnostic, } from "./transport-agnostic.js"; //# sourceMappingURL=index.d.ts.map