-
Also, Microsoft.Identity.Client does handle caching for the lifetime of ConfidentialClientApplication - I guess docs are not easily discoverable on thst topic. https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/token-cache-serialization. Internally from around 4.31 or 4.32 Microsoft.Identity.Client has also implemented internal token cache serialization, before it was just a very simple cache, but it still was there.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
microsoft-identity-web
Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
Also, check out Microsoft.Identity.Web https://github.com/AzureAD/microsoft-identity-web. It’s another wrapper around MSAL. It wraps some common best practices a little better than Azure.Identity does.
Related posts
-
Implementing fine-grained access control with ASP.NET Core custom endpoint metadata
-
Azure AD - How to have a Distributed Token Cache per tenant?
-
Securing a .NET Azure Function with Azure AD
-
General steps for azure AD authentication single tenant
-
Modernize your legacy API authentication with Microsoft.Identity.Web and Azure AD