Angular使用用户名和密码使用MSAL Service身份验证

问题描述 投票:0回答:1

我正在使用angular 7进行一个项目,我们已经有SSO但我需要使用Microsoft Graphs。现在我正在尝试使用MSAL (@azure/msal-angular),但我无法使用@username@password找到使用MSAL登录的方法。

 MsalModule.forRoot({
 clientID: "1231231-1212-4566-2345-fssfr34fsdf" })

任何的想法。

node.js angular authentication microsoft-graph msal
1个回答
0
投票

您无法在API调用中发送用户名/密码以获取身份验证令牌。 Microsoft Graph不支持此功能。

如果您没有用户上下文即仅应用程序上下文的身份验证,那么客户端凭据流可能是您最好的选择。您使用应用程序ID和密码进行身份验证。

Get access without a user

© www.soinside.com 2019 - 2024. All rights reserved.