Table of Contents

Class TokenResponse

Namespace
Visus.AddressValidation.Http
Assembly
Visus.AddressValidation.dll

Represents a token response returned by an OAuth 2.0 / OpenID Connect token endpoint.

[JsonConverter(typeof(TokenResponseConverter))]
public sealed record TokenResponse : IEquatable<TokenResponse>
Inheritance
TokenResponse
Implements
Inherited Members

Constructors

TokenResponse(string?, string?, string?, string?, int, string?, string?, string?)

Represents a token response returned by an OAuth 2.0 / OpenID Connect token endpoint.

public TokenResponse(string? AccessToken, string? RefreshToken, string? IdentityToken, string? IssuedTokenType, int ExpiresIn, string? Scope, string? TokenType, string? ErrorDescription)

Parameters

AccessToken string

The access token issued by the authorization server.

RefreshToken string

The refresh token, which can be used to obtain new access tokens, or null if not issued.

IdentityToken string

The identity token containing claims about the authenticated user, or null if not issued.

IssuedTokenType string

A URI that indicates the type of the issued security token, as defined by RFC 8693, or null if not present.

ExpiresIn int

The lifetime in seconds of the access token.

Scope string

The scope of the access token as a space-delimited list of scope values, or null if identical to the requested scope.

TokenType string

The type of the token issued (e.g. Bearer), or null if not present.

ErrorDescription string

A human-readable description of the error that occurred during token issuance, or null if the request was successful.

Properties

AccessToken

The access token issued by the authorization server.

public string? AccessToken { get; init; }

Property Value

string

ErrorDescription

A human-readable description of the error that occurred during token issuance, or null if the request was successful.

public string? ErrorDescription { get; init; }

Property Value

string

ExpiresIn

The lifetime in seconds of the access token.

public int ExpiresIn { get; init; }

Property Value

int

IdentityToken

The identity token containing claims about the authenticated user, or null if not issued.

public string? IdentityToken { get; init; }

Property Value

string

IssuedTokenType

A URI that indicates the type of the issued security token, as defined by RFC 8693, or null if not present.

public string? IssuedTokenType { get; init; }

Property Value

string

RefreshToken

The refresh token, which can be used to obtain new access tokens, or null if not issued.

public string? RefreshToken { get; init; }

Property Value

string

Scope

The scope of the access token as a space-delimited list of scope values, or null if identical to the requested scope.

public string? Scope { get; init; }

Property Value

string

TokenType

The type of the token issued (e.g. Bearer), or null if not present.

public string? TokenType { get; init; }

Property Value

string