Freigeben über


MsalAccessToken Class

Definition

Represents an access token obtained from Entra ID using MSAL (Microsoft Authentication Library). Holds the access token, metadata about the user and tenant, and the context needed to renew the token.

public class MsalAccessToken : Microsoft.Azure.Commands.Common.Authentication.IAccessToken, Microsoft.Azure.Commands.Common.Authentication.IClaimsChallengeProcessor
type MsalAccessToken = class
    interface IAccessToken
    interface IExtensibleModel
    interface IClaimsChallengeProcessor
Public Class MsalAccessToken
Implements IAccessToken, IClaimsChallengeProcessor
Inheritance
MsalAccessToken
Implements

Constructors

MsalAccessToken(TokenCredential, TokenRequestContext, String, DateTimeOffset, String, String, String)

Properties

AccessToken
ExpiresOn
ExtendedProperties
HomeAccountId
LoginType
TenantId
UserId

Methods

AuthorizeRequest(Action<String,String>)
OnClaimsChallenageAsync(HttpRequestMessage, String, CancellationToken)

Receives a claims challenge from the server and processes it to obtain a new access token. Then updates the request with the new access token.

Extension Methods

CopyPropertiesFrom(IExtensibleModel, IExtensibleModel)
GetProperty(IExtensibleModel, String)
GetPropertyAsArray(IExtensibleModel, String)
IsPropertySet(IExtensibleModel, String)
SetOrAppendProperty(IExtensibleModel, String, String[])
SetProperty(IExtensibleModel, String, String[])
UpdateProperties(IExtensibleModel, IExtensibleModel)
PopulateExtensions(IExtensibleModel, PSObject)

Populate the model extensions from a PSObject

GetDomain(IAccessToken)

Applies to