using System.Text.Json.Serialization; namespace ModelContextProtocol.TestOAuthServer; /// /// Represents the token response for OAuth flow. /// internal sealed class TokenResponse { /// /// Gets or sets the access token. /// [JsonPropertyName("access_token")] public required string AccessToken { get; init; } /// /// Gets or sets the token type. /// [JsonPropertyName("token_type")] public required string TokenType { get; init; } /// /// Gets or sets the token expiration time in seconds. /// [JsonPropertyName("expires_in")] public required int ExpiresIn { get; init; } /// /// Gets or sets the refresh token. /// [JsonPropertyName("refresh_token")] public string? RefreshToken { get; init; } /// /// Gets or sets the scope approved for this token. /// [JsonPropertyName("scope")] public string? Scope { get; init; } }