Module auth

Module auth 

Source

Structs§

Address
Represents a structured address for the OIDC address claim.
AuthClaims
Represents a combined set of JWT, OAuth 2.0, OIDC, and provider-specific claims.
AuthInfo
Information about a validated access token, provided to request handlers.
AuthMetadataBuilder
AuthMetadataEndpoints
AuthorizationServerMetadata
IntrospectionResponse
Represents an OAuth 2.0 Token Introspection response as per RFC 7662.
JsonWebKeySet
A JSON Web Key Set (JWKS) containing a list of JSON Web Keys.
OauthMetadata
OauthProtectedResourceMetadata
represents metadata about a protected resource in the OAuth 2.0 ecosystem. It allows clients and authorization servers to discover how to interact with a protected resource (like an MCP endpoint), including security requirements and supported features. https://datatracker.ietf.org/doc/rfc9728
RemoteAuthProvider
Represents a Remote OAuth authentication provider integrated with the MCP server. This struct defines how the MCP server interacts with an external identity provider that supports Dynamic Client Registration (DCR). The RemoteAuthProvider enables enterprise-grade authentication by leveraging external OAuth infrastructure, while maintaining secure token verification and identity validation within the MCP server.

Enums§

Audience
Represents the audience claim, which can be a single string or a list of strings.
AuthMetadateError
AuthenticationError
OauthEndpoint

Constants§

OAUTH_PROTECTED_RESOURCE_BASE
WELL_KNOWN_OAUTH_AUTHORIZATION_SERVER

Traits§

AuthProvider
OauthTokenVerifier

Functions§

create_discovery_endpoints
create_protected_resource_metadata_url
decode_token_header