Azure active directory Azure AD B2C在cookie中序列化StringCollection声明
我的B2C自定义策略设置如下:Azure active directory Azure AD B2C在cookie中序列化StringCollection声明,azure-active-directory,azure-ad-b2c,Azure Active Directory,Azure Ad B2c,我的B2C自定义策略设置如下: <TechnicalProfile Id="SM-AAD"> <DisplayName>Session Mananagement Provider</DisplayName> <Protocol Name="Proprietary" Handler="Web.TPEngine.SSO.DefaultSSOSessionProvider, Web.TPEngine, Version=1.0.0.0,
<TechnicalProfile Id="SM-AAD">
<DisplayName>Session Mananagement Provider</DisplayName>
<Protocol Name="Proprietary" Handler="Web.TPEngine.SSO.DefaultSSOSessionProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
<PersistedClaims>
<PersistedClaim ClaimTypeReferenceId="objectId" />
<PersistedClaim ClaimTypeReferenceId="signInName" />
<PersistedClaim ClaimTypeReferenceId="email" />
<PersistedClaim ClaimTypeReferenceId="groups" />
<PersistedClaim ClaimTypeReferenceId="executed-SelfAsserted-Input" />
</PersistedClaims>
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectIdFromSession" DefaultValue="true"/>
</OutputClaims>
</TechnicalProfile>
除了组声明之外,所有声明都在会话(cookie)中保持良好。在下一个令牌请求中,我们没有正确地序列化/反序列化值,而是在JWT中得到了以下内容:
"groups": ["System.Collections.Generic.List`1[System.String]"],
有没有办法正确序列化StringCollection声明类型?Hi@Izzul Haziq。您如何设置
组
索赔值?您好@ChrisPadgett,组
索赔值来自外部idp(Azure AD)。对此有任何更新吗?@JussiPalo您遇到过相同的问题吗?我最近没有接触过B2C工作,所以我可能对最近的更改/修复已经过时了。但对于我们上次的解决方案,我们必须实现一个简单的azure函数终结点,通过修改自定义策略中的用户旅程来序列化和反序列化存储在会话(cookie)中的StringCollections声明。我做到了,但通过在,在我的例子中,我们从REST端点(从B2C租户获取广告组数据)获取组声明。您如何设置组
索赔值?您好@ChrisPadgett,组
索赔值来自外部idp(Azure AD)。对此有任何更新吗?@JussiPalo您遇到过相同的问题吗?我最近没有接触过B2C工作,所以我可能对最近的更改/修复已经过时了。但对于我们上次的解决方案,我们必须实现一个简单的azure函数终结点,通过修改自定义策略中的用户旅程来序列化和反序列化存储在会话(cookie)中的StringCollections声明。我做到了,但通过在,在我的例子中,我们从REST端点(从B2C租户获取广告组数据)获取groups声明。
"groups": ["System.Collections.Generic.List`1[System.String]"],