Share via


CustomJsonClaimAction Constructors

Definition

Overloads

CustomJsonClaimAction(String, String, Func<JObject,String>)

Creates a new CustomJsonClaimAction.

CustomJsonClaimAction(String, String, Func<JsonElement,String>)

Creates a new CustomJsonClaimAction.

CustomJsonClaimAction(String, String, Func<JObject,String>)

Source:
CustomJsonClaimAction.cs
Source:
CustomJsonClaimAction.cs

Creates a new CustomJsonClaimAction.

public:
 CustomJsonClaimAction(System::String ^ claimType, System::String ^ valueType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
new Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction : string * string * Func<Newtonsoft.Json.Linq.JObject, string> -> Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction
Public Sub New (claimType As String, valueType As String, resolver As Func(Of JObject, String))

Parameters

claimType
String

The value to use for Claim.Type when creating a Claim.

valueType
String

The value to use for Claim.ValueType when creating a Claim.

resolver
Func<Newtonsoft.Json.Linq.JObject,String>

The Func that will be called to select value from the given json user data.

Applies to

CustomJsonClaimAction(String, String, Func<JsonElement,String>)

Source:
CustomJsonClaimAction.cs

Creates a new CustomJsonClaimAction.

public:
 CustomJsonClaimAction(System::String ^ claimType, System::String ^ valueType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<System.Text.Json.JsonElement,string> resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<System.Text.Json.JsonElement,string?> resolver);
new Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction : string * string * Func<System.Text.Json.JsonElement, string> -> Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction
Public Sub New (claimType As String, valueType As String, resolver As Func(Of JsonElement, String))

Parameters

claimType
String

The value to use for Claim.Type when creating a Claim.

valueType
String

The value to use for Claim.ValueType when creating a Claim.

resolver
Func<JsonElement,String>

The Func that will be called to select value from the given JSON user data.

Applies to