检查空索赔/使用不同的属性 [英] Check null claim / Use different attribute

查看:84
本文介绍了检查空索赔/使用不同的属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我遇到某个对象不存在某个属性的情况,我希望使用不同的属性发出传出声明。例如,如果我尝试使用  customAttribute1属性发出nameidentifier声明,
且该属性不存在,请使用customAttribute2发出声明。

I have cases where a certain attribute doesnt exist for an object, and I would want the outgoing claim to be issued using a different attribute. For example, if i try to issue a nameidentifier claim by using the customAttribute1 attribute, and the attribute doesn't exist, issue the claim by using customAttribute2.

有什么想法?

Luca Mihailescu

Luca Mihailescu

推荐答案

可以使用一个或多个自定义声明,而不是那么难。
Possible by using 1 or more custom claims, not that hard.


这篇关于检查空索赔/使用不同的属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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