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
ApplicationType
Gets or sets the OIDC application_type sent during dynamic client registration.
public string? ApplicationType { get; set; }
Property Value
Remarks
When null, the SDK infers the value from the configured
RedirectUri: loopback hosts (localhost,
127.0.0.1, [::1]) and custom-scheme URIs map to "native"; remote
http:// and https:// URIs map to "web".
When set explicitly, the value is sent without modification. Use this to account for authorization-server-specific requirements or to retry a registration with an adjusted application type.
ClientName
Gets or sets the client name to use during dynamic client registration.
public string? ClientName { get; set; }
Property Value
Remarks
This value is a human-readable name for the client that can 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
Remarks
This value 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
Remarks
This token is used to authenticate the client during the registration process.
This token 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
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.