Table of Contents

Namespace ModelContextProtocol.Authentication

Classes

ClientOAuthOptions

Provides configuration options for the ModelContextProtocol.Authentication.ClientOAuthProvider.

DynamicClientRegistrationOptions

Provides configuration options for the ModelContextProtocol.Authentication.ClientOAuthProvider related to dynamic client registration (RFC 7591).

DynamicClientRegistrationResponse

Represents a client registration response for OAuth 2.0 Dynamic Client Registration (RFC 7591).

IdentityAssertionGrantContext

Context provided to the IdentityAssertionGrantIdTokenCallback for a Cross-Application Access authorization flow. Contains the URLs discovered during the OAuth flow needed for the token exchange step.

IdentityAssertionGrantException

Represents an error that occurred during a Cross-Application Access authorization operation (token exchange per RFC 8693, and JWT bearer grant per RFC 7523).

IdentityAssertionGrantProvider

Provides Cross-Application Access authorization as a standalone, non-interactive provider that can be used alongside the MCP client's OAuth infrastructure.

IdentityAssertionGrantProviderOptions

Configuration options for the IdentityAssertionGrantProvider.

ProtectedResourceMetadata

Represents the resource metadata for OAuth authorization as defined in RFC 9728.

TokenContainer

Represents a cacheable combination of tokens ready to be used for authentication.

Interfaces

ITokenCache

Allows the client to cache access tokens beyond the lifetime of the transport.

Delegates

AuthorizationRedirectDelegate

Represents a method that handles the OAuth authorization URL and returns the authorization code.

IdentityAssertionGrantIdTokenCallback

Represents a method that returns an OIDC ID token for use in a Cross-Application Access authorization flow.