Table of Contents

Class OAuthErrorResponse

Namespace
XENBIT.ResQueServe.Core.Models
Assembly
RQS.Core.dll

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

string

ErrorDescription

[JsonPropertyName("error_description")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ErrorDescription { get; init; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(OAuthErrorResponse?)

public bool Equals(OAuthErrorResponse? other)

Parameters

other OAuthErrorResponse

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(OAuthErrorResponse?, OAuthErrorResponse?)

public static bool operator ==(OAuthErrorResponse? left, OAuthErrorResponse? right)

Parameters

left OAuthErrorResponse
right OAuthErrorResponse

Returns

bool

operator !=(OAuthErrorResponse?, OAuthErrorResponse?)

public static bool operator !=(OAuthErrorResponse? left, OAuthErrorResponse? right)

Parameters

left OAuthErrorResponse
right OAuthErrorResponse

Returns

bool