using System.Text.Json.Serialization;
namespace ModelContextProtocol.TestOAuthServer;
///
/// Represents a client registration request as defined in RFC 7591.
///
internal sealed class ClientRegistrationRequest
{
///
/// Gets or sets the redirect URIs for the client.
///
[JsonPropertyName("redirect_uris")]
public required List RedirectUris { get; init; }
///
/// Gets or sets the token endpoint authentication method.
///
[JsonPropertyName("token_endpoint_auth_method")]
public string? TokenEndpointAuthMethod { get; init; }
///
/// Gets or sets the grant types that the client will use.
///
[JsonPropertyName("grant_types")]
public List? GrantTypes { get; init; }
///
/// Gets or sets the response types that the client will use.
///
[JsonPropertyName("response_types")]
public List? ResponseTypes { get; init; }
///
/// Gets or sets the human-readable name of the client.
///
[JsonPropertyName("client_name")]
public string? ClientName { get; init; }
///
/// Gets or sets the URL of the client's home page.
///
[JsonPropertyName("client_uri")]
public string? ClientUri { get; init; }
///
/// Gets or sets the URL for the client's logo.
///
[JsonPropertyName("logo_uri")]
public string? LogoUri { get; init; }
///
/// Gets or sets the scope values that the client will use.
///
[JsonPropertyName("scope")]
public string? Scope { get; init; }
///
/// Gets or sets the OIDC application type ("web" or "native").
///
[JsonPropertyName("application_type")]
public string? ApplicationType { get; init; }
///
/// Gets or sets the contacts for the client.
///
[JsonPropertyName("contacts")]
public List? Contacts { get; init; }
///
/// Gets or sets the URL for the client's terms of service.
///
[JsonPropertyName("tos_uri")]
public string? TosUri { get; init; }
///
/// Gets or sets the URL for the client's privacy policy.
///
[JsonPropertyName("policy_uri")]
public string? PolicyUri { get; init; }
///
/// Gets or sets the JWK Set URL for the client.
///
[JsonPropertyName("jwks_uri")]
public string? JwksUri { get; init; }
///
/// Gets or sets the software identifier for the client.
///
[JsonPropertyName("software_id")]
public string? SoftwareId { get; init; }
///
/// Gets or sets the software version for the client.
///
[JsonPropertyName("software_version")]
public string? SoftwareVersion { get; init; }
}