語言

SamlSecurityTokenHandler.SetDelegateFromAttribute 方法

定義

當偵測到特殊類型的 SamlAttribute 時,會呼叫此方法。 傳遞的 SamlAttribute 會包裹一個包含一組 AttributeValue,每個 AttributeValue 都對應到一個權利要求。 所有理賠都會以 ClaimsIdentity 形式向指定的發卡人退回。

protected virtual void SetDelegateFromAttribute(Microsoft.IdentityModel.Tokens.Saml.SamlAttribute attribute, System.Security.Claims.ClaimsIdentity subject, string issuer);
abstract member SetDelegateFromAttribute : Microsoft.IdentityModel.Tokens.Saml.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
override this.SetDelegateFromAttribute : Microsoft.IdentityModel.Tokens.Saml.SamlAttribute * System.Security.Claims.ClaimsIdentity * string -> unit
Protected Overridable Sub SetDelegateFromAttribute (attribute As SamlAttribute, subject As ClaimsIdentity, issuer As String)

參數

attribute
SamlAttribute

要處理的 SamlAttribute。

subject
ClaimsIdentity

應該修改以反映 SamlAttribute 的身份。

issuer
String

發行人身份。

例外狀況

如果有兩個代表作為一個身份,我們就不允許這樣做。

適用於