Skip to main content

TokenResponse Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Model

TokenResponse Class

The response from an OAuth 2.0 / OpenID Connect token endpoint. This is the framework-neutral wire DTO both transport adapters (MVC, Minimal API) serialize; serialization is identical across frameworks, so a single core type serves both.

public record TokenResponse : System.IEquatable<Abblix.Oidc.Server.Model.TokenResponse>

Inheritance System.Object → TokenResponse

Implements System.IEquatable<TokenResponse>

Properties

TokenResponse.AccessToken Property

The access token issued by the authorization server.

public string AccessToken { get; init; }

Property Value

System.String

TokenResponse.AuthorizationDetails Property

RFC 9396 §7 authorization_details: the structured authorization data the token was granted for, echoed back to the client byte-exact. Omitted when no Rich Authorization Request was used.

public System.Text.Json.Nodes.JsonArray? AuthorizationDetails { get; init; }

Property Value

System.Text.Json.Nodes.JsonArray

TokenResponse.ExpiresIn Property

The lifetime in seconds of the access token.

public System.TimeSpan ExpiresIn { get; init; }

Property Value

System.TimeSpan

TokenResponse.IdToken Property

The ID token (a JWT carrying the user's identity), present in OpenID Connect flows.

public string? IdToken { get; init; }

Property Value

System.String

TokenResponse.IssuedTokenType Property

The type of the issued token, typically an absolute URI identifying the token type.

public System.Uri? IssuedTokenType { get; set; }

Property Value

System.Uri

TokenResponse.RefreshToken Property

The refresh token, used to obtain new access tokens using the same authorization grant.

public string? RefreshToken { get; init; }

Property Value

System.String

TokenResponse.Scope Property

The scope of the access token as granted by the resource owner.

public string[]? Scope { get; init; }

Property Value

System.String[]

TokenResponse.TokenType Property

The type of token that is issued, usually 'Bearer'.

public string TokenType { get; init; }

Property Value

System.String