【发布时间】:2021-02-27 09:57:13
【问题描述】:
基于在 https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/wiki/MSAL.NET-supports-multiple-application-architectures-and-multiple-platforms#msalnet-is-about-acquiring-tokens-not-protecting-an-api 中提到的 MSAL (Azure AD) 的文档详细信息
我正在研究 POC:ASP.NET Web App 访问受 Azure AD 保护的自定义 REST API。
上面提到的链接说MSAL.NET (Microsoft Authentication Library for .NET) enables developers of .NET applications to acquire tokens in order to call secured Web APIs. These Web APIs can be the Microsoft Graph, other Microsoft APIS, 3rd party Web APIs, or your own Web API.
根据上述定义,最好假设 MSAL 将帮助维护令牌缓存并在令牌即将过期时为您刷新令牌,以防自定义 REST API 也是如此。
任何人都可以通过提供进一步的指导来帮助我吗?
【问题讨论】:
标签: asp.net azure-active-directory msal