Azure-AD-B2C令牌格式

Azure-AD-B2C令牌格式,azure-ad-b2c,Azure Ad B2c,我们已经建立了一个服务,调用cosmos DB,以便在ID令牌中发送自定义声明。RESTAPI的输出符合下面的预期令牌格式 {"personalAttributes":{"guid":"1b92e96e28b14737acac11d23dcdd3d0","familyName":"ABC","givenName":"PQR","name"

我们已经建立了一个服务,调用cosmos DB,以便在ID令牌中发送自定义声明。RESTAPI的输出符合下面的预期令牌格式

{"personalAttributes":{"guid":"1b92e96e28b14737acac11d23dcdd3d0","familyName":"ABC","givenName":"PQR","name":"PQR","preferredUserName":"PQR","upn":"PQR@XYZ.com",
"physicalLocation":"London, UK"
"roles":"Engineer","Engineer","Engineer",
"scopes":{"scopeName":"Application 2 - Pipe Spool install","initiative":"nan","operation":"nan","WBS":"nan"},
{"roleName":"Engineer","jobPosition":"Engineer","rolePermissions":"read, report, archive"},
{"roleName":"Engineer","jobPosition":"Engineer","rolePermissions":"read, report, archive"},
{"roleName":"Engineer","jobPosition":"Engineer","rolePermissions":"read, report, archive"}}
但是,当B2C在ID令牌中包含此标记时,它将附加/和。我们尝试格式化输出,这导致B2C甚至不生成ID令牌。请告知我们如何克服这一问题

TIA

您需要应用一个从JSON中提取声明。


xxxx.onmicrosoft.com
B2C_1A_框架库
OIDC客户端id
一串
海关索赔
stringCollection
海关索赔
stringCollection
海关索赔
stringCollection
海外建筑运营管理局代币中的澳元索赔
一串
自定义服务的JSON输出
一串
自定义服务的JSON输出
一串
Azure Active Directory
xxxxxx
xxxxxx
贝克特尔
贝希特尔·阿德
工作或学校帐户
使用您的工作或学校帐户登录
https://login.microsoftonline.com/xxxx/v2.0/.well-known/openid-configuration
xxxxxx
代码
openid配置文件
表格邮政
邮递
假的
真的
https://login.microsoftonline.com/22d635a3-3930-4779-a82d-155e2d13b75e
脸谱网
facebook\u客户端ID
电子邮件公共档案
https://graph.facebook.com/me?fields=id,名字,姓氏,姓名,电子邮件
本地帐户登录
db6c8fe9-368f-48a0-af63-19ad47d91e90
5169b8e9-5bcd-4b04-b5f1-D3CA801BBEF
REST API
获取自定义索赔
https://xxxxx.azurewebsites.net/xxxxx
查询字符串
没有一个
真的
自以为是的
用户ID注册
api.Self断言
认证源
社交身份验证
SkipThisOrchestrationStep
目标
SkipThisOrchestrationStep

请参见下面的政策


xxxx.onmicrosoft.com
B2C_1A_框架库
OIDC客户端id
一串
海关索赔
stringCollection
海关索赔
stringCollection
海关索赔
stringCollection
海外建筑运营管理局代币中的澳元索赔
一串
自定义服务的JSON输出
一串
自定义服务的JSON输出
一串
Azure Active Directory
xxxxxx
xxxxxx
贝克特尔
贝希特尔·阿德
工作或学校帐户
使用您的工作或学校帐户登录
https://login.microsoftonline.com/xxxx/v2.0/.well-known/openid-configuration
xxxxxx
代码
openid配置文件
表格邮政
邮递
假的
真的
https://login.microsoftonline.com/22d635a3-3930-4779-a82d-155e2d13b75e