回答

0

正常权利要求规则的形式例如:

C:[类型== “http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname”,发行人== “AD AUTHORITY”] =>问题(存储= “活动目录”,类型= (“http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress”),query =“; mail; {0}”,param = c.Value);

此致想是这样的:

C:[类型== “http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname”,发行人== “AD权威”] =>问题(店= “活动目录”,类型=( “http://schemas.xmlsoap.org/ws/2005/05/identity/claims/AdLogon” ),query =“; [some attribute]; {0}”,param = c.Value);

得到的只是 “AdLogon”,使用:

C:[类型== “http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname”,发行人== “AD权威”] =>问题(店= “活动目录”,类型=( “AdLogon”),query =“; [some attribute]; {0}”,param = c.Value);

+0

我使用WIF从联合身份验证服务器对其进行身份验证,因此它会自动填充声明Type = [link] http://schemas.xmlsoap.org/ws/2005/05/identity/claims/AdLogon格式,但我只是想要Type =“AdLogon”。 –

+0

我在谈论ADFS中的声明规则 - 或者你在使用别的东西吗? – nzpcmad