我按照 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
对可能出现的问题有什么建议吗?
最佳答案
一旦您向 the steps described here 之后的 Web 应用程序授予 API 访问权限,就会返回访问 token .
关于Azure AD B2C : AcquireTokenSilentAsync returns empty access token,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47800830/