我会授权给Azure广告。
我已在中配置了我的应用程序
module.app
MsalModule.forRoot({
clientID: "ClientId",
authority: "https://login.microsoftonline.com/tenant.onmicrosoft.com/",
redirectUri: "http://localhost:4200/",
validateAuthority : true,
cacheLocation : "localStorage",
postLogoutRedirectUri: "http://localhost:4200/",
navigateToLoginRequestUrl : true,
popUp: true,
consentScopes: ["user.read", "api://??what_Id_Sould_I_Put???/access_as_user"],
unprotectedResources: ["https://angularjs.org/"],
correlationId: '1234',
piiLoggingEnabled: true,
}),
我使用的组件
loginPopup
连接方法:
this.authService.loginPopup(["user.read" ,"api://ClientId/access_as_user"]);
我知道这个错误
AADSTS50001:在名为de5e3c28-141c-4d3e-90ea-aa3326abe67d(奇怪的ID)的租户中找不到名为api://ClientId的应用程序。如果租户的管理员未安装应用程序或租户中的任何用户未同意安装应用程序,则可能会发生这种情况。您可能向错误的租户发送了身份验证请求。
在
sample demo
这个
身份证件
用于
同意范围
变量不同于
客户端ID
,我不知道那是什么身份证,怎么拿到?