这个错误通常是由于缺少必要的应用程序权限所致,在应用程序程序注册中添加或配置相应的权限即可。以下是一些代码示例可以用来添加所需的声明和权限:
- https://login.microsoftonline.com/{0}
- {clientId}
- {tenantId}
- {SignUpSignInPolicyId}
- B2C_1A_MyPolicy
- https://login.microsoftonline.com/{tenant}/oauth2/token
-
Startup+OnPremisesIssuerValidator.ValidateOnPremisesIssuer
name
role
false
Bearer
5
在这里,ClientId 和 TenantId 是应用程序注册的标识符和租户标识符,SignUpSignInPolicyId 是应用程序用于注册和登录用户的
上一篇:AzureADB2C-.NET-Web应用程序调用WebAPI-AcquireTokenSilent调用中未传递帐户或登录提示
下一篇:azureadb2c;aftermobilelogin:thetokenreturneddoesnotincludeanaccesstoken,butatokenId