索赔财产 [英] Claim property

查看:65
本文介绍了索赔财产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft.IdentityModel.Claims.Claim类允许在Claims.Properties集合中添加有关声明的元数据。

在我的STS中 当我向SAML令牌添加声明时,GetOutputClaimsIdentity(...)方法,我能够为每个声明添加属性,如下所示:

claim.SetProperty(" key"," value") 。

但当依赖方收到索赔时,索赔中缺少这些财产。

任何想法?


MP

Microsoft.IdentityModel.Claims.Claim class allows to add metadata about the claim in Claims.Properties collection.

In my STS's  GetOutputClaimsIdentity(...) method when I add claims to the SAML token, I am able to add properties to each Claim like this:

claim.SetProperty("key","value").

But when that claim is received on the relying party side, these properties are missing from the claims.

Any idea?


MP

推荐答案

声明属性用于在各个部分之间进行通信(发布)管道 - 它们没有被序列化或传输。
Claim properties are used to communicate between various parts of the (issuance) pipeline - they are not serialized or transmitted.


这篇关于索赔财产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆