using System.Text.Json.Serialization; namespace ModelContextProtocol.TestOAuthServer; /// /// Represents the response from the token introspection endpoint. /// internal sealed class TokenIntrospectionResponse { /// /// Gets or sets a value indicating whether the token is active. /// [JsonPropertyName("active")] public required bool Active { get; init; } /// /// Gets or sets the client ID associated with the token. /// [JsonPropertyName("client_id")] public string? ClientId { get; init; } /// /// Gets or sets the scope of the token. /// [JsonPropertyName("scope")] public string? Scope { get; init; } /// /// Gets or sets the expiration timestamp of the token (Unix timestamp). /// [JsonPropertyName("exp")] public long? ExpirationTime { get; init; } /// /// Gets or sets the audience of the token. /// [JsonPropertyName("aud")] public string? Audience { get; init; } }