azure ad b2c 运行用户流不返回带有声明的 token

标签 azure azure-active-directory

我已经配置了一个用户流程来获取用户的电子邮件、姓氏、名字和城市,当我按“运行用户流程”并将回调 URL 添加为 jwt.ms 时,我在上看不到电子邮件和所有上述声明 token 。为什么?

最佳答案

我在运行用户流程时检查了所需的声明。

在此之前,请确保添加所需的 API 权限,例如授予管理员同意的 openid 、offline_access、profile 和 User.Read.All 权限:

enter image description here

当我运行登录用户流程或 signupsignin 但用户已登录时,用户登录时的输出声明不包含任何其他声明。

因为我只选择了以下声明以在用户流应用程序声明中返回:

enter image description here

enter image description here

当我注册时选择了额外的申请声明。

enter image description here

https://xxxb2c.b2clogin.com/xxxxxb2c.onmicrosoft.com/oauth2/v2.0/authorize?p=B2C_1_newSignupSignin&client_id=5xxxxxxxx&nonce=defaultNonce&redirect_uri=https%3A%2F%2Fjwt.ms&scope=openid&response_type=id_token&prompt=login

当新用户注册时,以及当他填写所有内容时。

enter image description here enter image description here

并且声明出现在 token 中: enter image description here

关于azure ad b2c 运行用户流不返回带有声明的 token ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/75569210/

相关文章:

azure - 从 Azure Function 发出长时间运行的 HTTP 请求时 HTTP 超时

asp.net - 需要新的委派权限时未征求用户同意

c# - 使用 Azure ActiveDir oAuth2.0 JWT token 的 Asp-Net-Core WebApi 身份验证 Microsoft Graph

azure - 使用 Azure DevOps Artifact 时无法在构建管道中执行 "dotnet tool restore --interactive"

azure - Application Insights 报告每个服务器请求的重复事件

azure - 如何查找 Service Fabric 群集上的特定节点

azure - 为什么作为订阅的共同管理员我无法编辑 Active Directory?

angularjs - 使用 Angular 和 ADAL 的 Cordova 应用程序

azure - 针对 Azure 中 VM 的自定义指标

azure - 如何在 Azure 应用程序网关不支持 IPv6 的情况下添加对 IPv6 的支持