using System.Text.Json.Serialization;
namespace CarpaNet.OAuth;
///
/// Pushed Authorization Request response (RFC 9126).
///
public sealed class PushedAuthorizationResponse
{
///
/// The request URI to use in the authorization request.
///
[JsonPropertyName("request_uri")]
public string RequestUri { get; set; } = string.Empty;
///
/// The lifetime in seconds of the request URI.
///
[JsonPropertyName("expires_in")]
public int ExpiresIn { get; set; }
}
///
/// OAuth error response.
///
public sealed class OAuthErrorResponse
{
///
/// The error code.
///
[JsonPropertyName("error")]
public string Error { get; set; } = string.Empty;
///
/// Human-readable error description.
///
[JsonPropertyName("error_description")]
public string? ErrorDescription { get; set; }
///
/// URI with more information about the error.
///
[JsonPropertyName("error_uri")]
public string? ErrorUri { get; set; }
}