Language

TokenAcquisitionMetadata Class

Definition

Metadata describing how an access token was acquired: timings, cache state, region routing, and any additional response parameters returned by the token endpoint.

public sealed class TokenAcquisitionMetadata
type TokenAcquisitionMetadata = class
Public NotInheritable Class TokenAcquisitionMetadata
Inheritance
TokenAcquisitionMetadata

Constructors

Name Description
TokenAcquisitionMetadata()

Properties

Name Description
CacheLevel

Cache tier that served the token.

CacheRefreshReason

Reason the cache was refreshed during this attempt, if any.

DurationInCacheInMs

Time spent reading and writing the token cache, in milliseconds.

DurationInHttpInMs

Time spent in HTTP calls to the token endpoint, in milliseconds.

DurationTotalInMs

Total wall-clock duration of the token-acquisition attempt, in milliseconds.

ExpiresOn

Point in time at which the access token expires, or null when not captured. Mirrors ExpiresOn.

RefreshOn

Point in time at which the token should be proactively refreshed, or null when no proactive refresh hint was provided.

RegionDetails

Regional ESTS routing details, or null when regional routing was not used.

TokenEndpoint

Token endpoint contacted, or null if the token was served from the cache.

TokenSource

Source the token was obtained from.

Applies to