Table of Contents

Class ClientCredentialsToken

Namespace
Fdyay.AccessTokenManagement
Assembly
Fdyay.AccessTokenManagement.dll

An access token and when it stops being usable.

public sealed class ClientCredentialsToken
Inheritance
ClientCredentialsToken
Inherited Members

Properties

AccessToken

The access_token from the token response.

public required string AccessToken { get; init; }

Property Value

string

ExpiresAt

When the token expires: the time the request was sent plus the response's expires_in, or the time the request was sent when the response gave no lifetime.

public DateTimeOffset ExpiresAt { get; init; }

Property Value

DateTimeOffset

Scope

The scope from the token response, or null when the response gave none.

public string? Scope { get; init; }

Property Value

string

TokenType

The token_type from the token response, used as the Authorization header's scheme; Bearer when the response gave none.

public required string TokenType { get; init; }

Property Value

string