AppServicesAuthenticationTokenAcquisition Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.