TokenCacheExtensions Class

Definition

Extension methods to expose a simplified developer experience for adding token caches to MSAL.NET confidential client applications in ASP.NET, or .NET Core, or .NET FW.

public static class TokenCacheExtensions
type TokenCacheExtensions = class
Public Module TokenCacheExtensions
Inheritance
System.Object
TokenCacheExtensions

Methods

AddDistributedTokenCache(IConfidentialClientApplication, Action<IServiceCollection>)

Add a distributed token cache.

AddInMemoryTokenCache(IConfidentialClientApplication)

Add an in-memory well partitioned token cache to MSAL.NET confidential client application. Don't use this method in ASP.NET Core: rather use: services.AddInMemoryTokenCache() in ConfigureServices.

Applies to