csharp-sdk/tests/ModelContextProtocol.TestOAuthServer/OAuthErrorResponse.cs

21 lines
No EOL
540 B
C#

using System.Text.Json.Serialization;
namespace ModelContextProtocol.TestOAuthServer;
/// <summary>
/// Represents an OAuth error response.
/// </summary>
internal sealed class OAuthErrorResponse
{
/// <summary>
/// Gets or sets the error code.
/// </summary>
[JsonPropertyName("error")]
public required string Error { get; init; }
/// <summary>
/// Gets or sets the error description.
/// </summary>
[JsonPropertyName("error_description")]
public required string ErrorDescription { get; init; }
}