AuthenticationResult AuthenticationResult AuthenticationResult Class

Definition

Contains the results of one token acquisition operation.

[System.Runtime.Serialization.DataContract]
public sealed class AuthenticationResult
type AuthenticationResult = class
Public NotInheritable Class AuthenticationResult
Inheritance
AuthenticationResultAuthenticationResultAuthenticationResult
Attributes

Properties

AccessToken AccessToken AccessToken

Gets the Access Token requested.

AccessTokenType AccessTokenType AccessTokenType

Gets the type of the Access Token returned.

Authority Authority Authority

Gets the authority that has issued the token.

ExpiresOn ExpiresOn 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.

ExtendedLifeTimeToken ExtendedLifeTimeToken ExtendedLifeTimeToken

Gives information to the developer whether token returned is during normal or extended lifetime.

IdToken IdToken IdToken

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

TenantId TenantId TenantId

Gets an identifier for the tenant the token was acquired from. This property will be null if tenant information is not returned by the service.

UserInfo UserInfo UserInfo

Gets user information including user Id. Some elements in UserInfo might be null if not returned by the service.

Methods

CreateAuthorizationHeader() CreateAuthorizationHeader() CreateAuthorizationHeader()

Creates authorization header from authentication result.

Extension Methods

IsDefined(Object) IsDefined(Object) IsDefined(Object)

Determines if a certain property is defined or not.

IsNull(Object) IsNull(Object) IsNull(Object)

Determines if a certain property is null or not.

IsPrimitive(Object) IsPrimitive(Object) IsPrimitive(Object)

Determines if a certain property is of premitive JSON type.

Applies to