Share via


AuthenticationResultMetadata Class

Definition

Contains metadata of the authentication result. Metrics for additional MSAL-wide metrics.

public class AuthenticationResultMetadata
type AuthenticationResultMetadata = class
Public Class AuthenticationResultMetadata
Inheritance
AuthenticationResultMetadata

Constructors

AuthenticationResultMetadata(TokenSource)

Constructor for the class AuthenticationResultMetadata

Properties

CacheLevel

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

CacheRefreshReason

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

DurationCreatingExtendedTokenInUs

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

DurationInCacheInMs

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.

DurationInHttpInMs

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

DurationTotalInMs

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.

RefreshOn

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

RegionDetails

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

Telemetry

May contain telemetry data.

TokenEndpoint

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.

TokenSource

The source of the token in the result.

Applies to