TokenAcquisitionOptions Class

Definition

Options passed-in to create the token acquisition object which calls into MSAL .NET.

public class TokenAcquisitionOptions
type TokenAcquisitionOptions = class
Public Class TokenAcquisitionOptions
Inheritance
TokenAcquisitionOptions

Constructors

TokenAcquisitionOptions()

Properties

Claims

A string with one or multiple claims to request. Normally used with Conditional Access.

CorrelationId

Sets the correlation id to be used in the authentication request to the /token endpoint.

ExtraQueryParameters

Sets Extra Query Parameters for the query string in the HTTP authentication request.

ForceRefresh

Specifies if the token request will ignore the access token in the token cache and will attempt to acquire a new access token. If true, the request will ignore the token cache. The default is false. Use this option with care and only when needed, for instance, if you know that conditional access policies have changed, for it induces performance degradation, as the token cache is not utilized.

PoPConfiguration

Modifies the token acquisition request so that the acquired token is a Proof of Possession token (PoP), rather than a Bearer token. PoP tokens are similar to Bearer tokens, but are bound to the HTTP request and to a cryptographic key, which MSAL can manage. See https://aka.ms/msal-net-pop.

Methods

Clone()

Clone the options (to be able to override them).

Applies to