我收到索賠輸入身份證像this。Get Friendly從身份證索賠名稱
我只是想將友好名稱「AdLogon」作爲我的聲明類型。 我知道我們可以通過操作字符串來實現,但是有沒有任何標準的方法來做到這一點。
我收到索賠輸入身份證像this。Get Friendly從身份證索賠名稱
我只是想將友好名稱「AdLogon」作爲我的聲明類型。 我知道我們可以通過操作字符串來實現,但是有沒有任何標準的方法來做到這一點。
正常權利要求規則的形式例如:
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);
我使用WIF從聯合身份驗證服務器對其進行身份驗證,因此它會自動填充聲明Type = [link] http://schemas.xmlsoap.org/ws/2005/05/identity/claims/AdLogon格式,但我只是想要Type =「AdLogon」。 –
我在談論ADFS中的聲明規則 - 或者你在使用別的東西嗎? – nzpcmad