MapAllClaimsAction.Run 方法

定义

重载

Run(JObject, ClaimsIdentity, String)
Run(JsonElement, ClaimsIdentity, String)

检查给定的 userData JSON,确定是否存在必需的数据,并可以选择将其添加为 ClaimsIdentity 上的新声明。

Run(JObject, ClaimsIdentity, String)

Source:
MapAllClaimsAction.cs
Source:
MapAllClaimsAction.cs
public:
 override void Run(Newtonsoft::Json::Linq::JObject ^ userData, System::Security::Claims::ClaimsIdentity ^ identity, System::String ^ issuer);
public override void Run (Newtonsoft.Json.Linq.JObject userData, System.Security.Claims.ClaimsIdentity identity, string issuer);
override this.Run : Newtonsoft.Json.Linq.JObject * System.Security.Claims.ClaimsIdentity * string -> unit
Public Overrides Sub Run (userData As JObject, identity As ClaimsIdentity, issuer As String)

参数

userData
Newtonsoft.Json.Linq.JObject
identity
ClaimsIdentity
issuer
String

适用于

Run(JsonElement, ClaimsIdentity, String)

Source:
MapAllClaimsAction.cs

检查给定的 userData JSON,确定是否存在必需的数据,并可以选择将其添加为 ClaimsIdentity 上的新声明。

public:
 override void Run(System::Text::Json::JsonElement userData, System::Security::Claims::ClaimsIdentity ^ identity, System::String ^ issuer);
public override void Run (System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer);
override this.Run : System.Text.Json.JsonElement * System.Security.Claims.ClaimsIdentity * string -> unit
Public Overrides Sub Run (userData As JsonElement, identity As ClaimsIdentity, issuer As String)

参数

userData
JsonElement

要检查的源数据。 此值可为 null。

identity
ClaimsIdentity

要向其添加声明的标识。

issuer
String

创建声明时要用于 Claim.Issuer 的值。

适用于