问题描述
我希望能够使用通过msal登录到Webapp时获得的身份验证令牌。如果使用工具箱,则必须重新登录(mgt-login)。如何绕过第二次登录?谢谢。
解决方法
听起来您已经在应用程序中使用了msal.js,对吗?
此功能尚不可用,但是我们添加了使用msal.js中现有的UserAgentApplication对象配置新的MsalProvider的功能。
此功能最近由社区成员添加,可在最新预览中使用: https://github.com/microsoftgraph/microsoft-graph-toolkit/releases/tag/v2.0.0-preview.1
您可以在以下mgt预览文档中找到有关此新功能的详细信息: https://github.com/microsoftgraph/microsoft-graph-docs/blob/mgt/next/concepts/toolkit/providers/msal.md#pass-an-existing-useragentapplication-in-the-useragentapplication-property