回答

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