AcquireTokenResult Class

Definition

Result of a token acquisition.

public class AcquireTokenResult
type AcquireTokenResult = class
Public Class AcquireTokenResult
Inheritance
AcquireTokenResult

Constructors

AcquireTokenResult(String, DateTimeOffset, String, String, IEnumerable<String>, Guid, String)

Constructor.

Properties

AccessToken

Access Token that can be used to build an authorization header to access protected web APIs.

CorrelationId

Gets the correlation id used for the request. If provided in CorrelationId, this will be the same, otherwise a new one will be created by the token acquirer.

ExpiresOn

Gets the point in time in which the Access Token returned in the AccessToken property ceases to be valid. This value is calculated based on current UTC time measured locally and the value expiresIn received from the service.

IdToken

Gets the Id Token if returned by the service or null if no Id Token is returned.

Scopes

Gets the scope values effectively granted by the IdP. They can be different form the scopes requested.

TenantId

(Microsoft Identity specific) In the case of Azure AD, Azure AD B2C, or Microsoft Entra External IDs, gets an identifier for the tenant for which the token was acquired. This property will be null if tenant information is not returned by the service or the service is not Azure AD.

TokenType

Gets the protocol (Bearer or Pop).

Applies to