<PackageReference Include="Microsoft.Identity.Client" Version="4.83.0" />

Microsoft.Identity.Client.AuthenticationResultMetadata

Contains metadata of the authentication result. Metrics for additional MSAL-wide metrics.
public int CachedAccessTokenCount { get; set; }

The number of access tokens in the cache.

public CacheLevel CacheLevel { get; set; }

Indicates the type of cache that the token was read from.

Specifies the reason for fetching the access token from the identity provider.

public long DurationCreatingExtendedTokenInUs { get; set; }

Time, in microseconds, spent in the token creation of the extended token.

public long DurationInCacheInMs { get; set; }

Time, in milliseconds, MSAL spent during this request reading and writing to the token cache, i.e. in the OnBeforeAccess, OnAfterAccess, etc. callbacks. Does not include internal MSAL logic for searching through the cache once loaded.

public long DurationInHttpInMs { get; set; }

Time, in milliseconds, MSAL spent for HTTP communication during this request.

public long DurationTotalInMs { get; set; }

Time, in milliseconds, spent to service this request. Includes time spent making HTTP requests DurationInHttpInMs, time spent in token cache callbacks DurationInCacheInMs, time spent in MSAL and context switching.

public DateTimeOffset? RefreshOn { get; set; }

Specifies the time when the cached token should be proactively refreshed. This value may be null if proactive refresh is not enabled.

public RegionDetails RegionDetails { get; set; }

Contains the outcome of the region discovery if region was used.

public string Telemetry { get; set; }

May contain telemetry data.

public string TokenEndpoint { get; set; }

The token endpoint used to contact the Identity Provider (e.g. Azure Active Directory). Can be null, for example when the token comes from the cache.

public TokenSource TokenSource { get; }

The source of the token in the result.

Constructor for the class AuthenticationResultMetadata The token source.