Azure AD B2C : AcquireTokenSilentAsync returns empty access token

标签 azure azure-ad-b2c

我按照 Create an ASP.NET web app with Azure Active Directory B2C sign-up, sign-in, profile edit, and password reset 中的步骤操作并使用示例代码为我们公司制作了 Azure AD B2C 原型(prototype)。

  • 唯一的变化是我使用了我的域名而不是示例域并修改了 web.config
  • 我已经定义了 API 应用的范围和 App ID
  • 我获得了 Id token ,但没有访问 token

对可能出现的问题有什么建议吗?

enter image description here

最佳答案

Create an ASP.NET web app with Azure Active Directory B2C sign-up, sign-in, profile edit, and password reset 中缺少一个步骤文档。

一旦您向 the steps described here 之后的 Web 应用程序授予 API 访问权限,就会返回访问 token .

关于Azure AD B2C : AcquireTokenSilentAsync returns empty access token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47800830/

相关文章:

java - 天蓝色 AD B2C、java 应用程序

首次登录时重置密码期间出现 Azure AD B2C 错误(使用自定义策略)

azure - Azure 网站和 Azure 云服务有什么区别

azure-ad-b2c - 如何在 Azure AD B2C 中添加 b2c-extensions-app

azure - 如何使用 Azure Portal 恢复过去的数据库

postgresql - 将 azure 文件存储与 kubernetes 和 azure 容器服务 (aks) 一起使用 - 权限被拒绝

azure - 多个应用程序的 B2C SSO 行为

azure - Multi-Tenancy SaaS 应用程序的身份验证

python - 如何设置正确的权限来使用Python Azure SDK for Graph?

wpf - Azure StorageClient 客户端超时