Table of Contents

Class DynamicClientRegistrationOptions

Namespace
ModelContextProtocol.Authentication
Assembly
ModelContextProtocol.Core.dll

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

public sealed class DynamicClientRegistrationOptions
Inheritance
DynamicClientRegistrationOptions
Inherited Members

Properties

ClientName

Gets or sets the client name to use during dynamic client registration.

public string? ClientName { get; set; }

Property Value

string

Remarks

This is a human-readable name for the client that may be displayed to users during authorization.

ClientUri

Gets or sets the client URI to use during dynamic client registration.

public Uri? ClientUri { get; set; }

Property Value

Uri

Remarks

This should be a URL pointing to the client's home page or information page.

InitialAccessToken

Gets or sets the initial access token to use during dynamic client registration.

public string? InitialAccessToken { get; set; }

Property Value

string

Remarks

This token is used to authenticate the client during the registration process.

This is required if the authorization server does not allow anonymous client registration.

ResponseDelegate

Gets or sets the delegate used for handling the dynamic client registration response.

public Func<DynamicClientRegistrationResponse, CancellationToken, Task>? ResponseDelegate { get; set; }

Property Value

Func<DynamicClientRegistrationResponse, CancellationToken, Task>

Remarks

This delegate is responsible for processing the response from the dynamic client registration endpoint.

The implementation should save the client credentials securely for future use.