using System.Text.Json.Serialization; namespace ModelContextProtocol.TestOAuthServer; /// /// Represents a client registration response as defined in RFC 7591. /// internal sealed class ClientRegistrationResponse { /// /// Gets or sets the client identifier. /// [JsonPropertyName("client_id")] public required string ClientId { get; init; } /// /// Gets or sets the client secret. /// [JsonPropertyName("client_secret")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? ClientSecret { get; init; } /// /// Gets or sets the redirect URIs for the client. /// [JsonPropertyName("redirect_uris")] public required List RedirectUris { get; init; } /// /// Gets or sets the registration access token. /// [JsonPropertyName("registration_access_token")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? RegistrationAccessToken { get; init; } /// /// Gets or sets the registration client URI. /// [JsonPropertyName("registration_client_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? RegistrationClientUri { get; init; } /// /// Gets or sets the client ID issued timestamp. /// [JsonPropertyName("client_id_issued_at")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public long? ClientIdIssuedAt { get; init; } /// /// Gets or sets the client secret expiration time. /// [JsonPropertyName("client_secret_expires_at")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public long? ClientSecretExpiresAt { get; init; } /// /// Gets or sets the token endpoint authentication method. /// [JsonPropertyName("token_endpoint_auth_method")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? TokenEndpointAuthMethod { get; init; } /// /// Gets or sets the grant types that the client will use. /// [JsonPropertyName("grant_types")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? GrantTypes { get; init; } /// /// Gets or sets the response types that the client will use. /// [JsonPropertyName("response_types")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ResponseTypes { get; init; } /// /// Gets or sets the human-readable name of the client. /// [JsonPropertyName("client_name")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? ClientName { get; init; } /// /// Gets or sets the URL of the client's home page. /// [JsonPropertyName("client_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? ClientUri { get; init; } /// /// Gets or sets the URL for the client's logo. /// [JsonPropertyName("logo_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? LogoUri { get; init; } /// /// Gets or sets the scope values that the client will use. /// [JsonPropertyName("scope")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Scope { get; init; } /// /// Gets or sets the contacts for the client. /// [JsonPropertyName("contacts")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? Contacts { get; init; } /// /// Gets or sets the URL for the client's terms of service. /// [JsonPropertyName("tos_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? TosUri { get; init; } /// /// Gets or sets the URL for the client's privacy policy. /// [JsonPropertyName("policy_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? PolicyUri { get; init; } /// /// Gets or sets the JWK Set URL for the client. /// [JsonPropertyName("jwks_uri")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? JwksUri { get; init; } /// /// Gets or sets the software identifier for the client. /// [JsonPropertyName("software_id")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? SoftwareId { get; init; } /// /// Gets or sets the software version for the client. /// [JsonPropertyName("software_version")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? SoftwareVersion { get; init; } }