AppServicesAuthenticationTokenAcquisition Constructor

Definition

Constructor of the AppServicesAuthenticationTokenAcquisition.

public AppServicesAuthenticationTokenAcquisition (Microsoft.Identity.Web.TokenCacheProviders.IMsalTokenCacheProvider tokenCacheProvider, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor, System.Net.Http.IHttpClientFactory httpClientFactory);
new Microsoft.Identity.Web.AppServicesAuthenticationTokenAcquisition : Microsoft.Identity.Web.TokenCacheProviders.IMsalTokenCacheProvider * Microsoft.AspNetCore.Http.IHttpContextAccessor * System.Net.Http.IHttpClientFactory -> Microsoft.Identity.Web.AppServicesAuthenticationTokenAcquisition
Public Sub New (tokenCacheProvider As IMsalTokenCacheProvider, httpContextAccessor As IHttpContextAccessor, httpClientFactory As IHttpClientFactory)

Parameters

tokenCacheProvider
IMsalTokenCacheProvider

The App token cache provider.

httpContextAccessor
IHttpContextAccessor

Access to the HttpContext of the request.

httpClientFactory
IHttpClientFactory

HTTP client factory.

Applies to