ADFS If Exist Then语句 [英] ADFS If Exist Then statement
问题描述
是否有人使用声明语言创建了ADFS声明,以创建声明如下(对于同一依赖方信任)。如果你能提供帮助,那将非常感激
逻辑:
如果extensionAttribute1 = X则使用"employee-Number"作为LDAP属性和"名称ID"作为传出声明类型
如果extensionAttribute1 = Y,则使用"extensionAttribute2";作为LDAP属性和"名称ID"作为即将离任的索赔类型
提前致谢!!
Feddie
您需要为extensionAttribute1,extensionAttribute2和employee-Number发出声明。给他们你想要的任何名字。
然后:
c1:[type ==" http://company.com/extensionAttribute1 " ;,value ==" X"]&&
c2:[type ==" < a href ="http://company.com/employee-Number"> http://company.com/employee-Number "]
=>问题(type =" http:// xxx / Name ID",value = c2.Value);
  ; $
c1:[type ==" http://company.com/extensionAttribute1 ",value ==" Y"]&&
c2:[type ==" http://company.com / extensionAttribute2 "]
=> issue(type =" http:// xxx / Name ID",value = c2.Value);
Has anyone created a ADFS claim using the claim language to create a claim as following (for the same relying party trust). If you can help, that would be greatly appreciated
Logic:
If extensionAttribute1= X then use "employee-Number" as the LDAP attribute and "Name ID" as the outgoing claim type
If extensionAttribute1= Y then use "extensionAttribute2" as the LDAP attribute and "Name ID" as the outgoing claim type
Thanks in advance!!
Feddie
You need to issue claims for extensionAttribute1, extensionAttribute2 and employee-Number. Give them whatever names you want.
Then:
c1:[type == "http://company.com/extensionAttribute1", value == "X"] &&
c2:[type == "http://company.com/employee-Number"]
=> issue(type = "http://xxx/Name ID", value = c2.Value);
c1:[type == "http://company.com/extensionAttribute1", value == "Y"] &&
c2:[type == "http://company.com/extensionAttribute2"]
=> issue(type = "http://xxx/Name ID", value = c2.Value);
这篇关于ADFS If Exist Then语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!