Class OAuthErrorResponse
RFC 6749-compliant error response of the OAuth endpoints (token, authorize, register, revoke).
public sealed record OAuthErrorResponse : IEquatable<OAuthErrorResponse>
- Inheritance
-
OAuthErrorResponse
- Implements
- Inherited Members
- Extension Methods
Constructors
OAuthErrorResponse()
public OAuthErrorResponse()
Properties
Error
The error code, e.g. invalid_request, invalid_client or invalid_grant.
[JsonPropertyName("error")]
public required string Error { get; init; }
Property Value
ErrorDescription
[JsonPropertyName("error_description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ErrorDescription { get; init; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(OAuthErrorResponse?)
public bool Equals(OAuthErrorResponse? other)
Parameters
otherOAuthErrorResponse
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(OAuthErrorResponse?, OAuthErrorResponse?)
public static bool operator ==(OAuthErrorResponse? left, OAuthErrorResponse? right)
Parameters
leftOAuthErrorResponserightOAuthErrorResponse
Returns
operator !=(OAuthErrorResponse?, OAuthErrorResponse?)
public static bool operator !=(OAuthErrorResponse? left, OAuthErrorResponse? right)
Parameters
leftOAuthErrorResponserightOAuthErrorResponse