Share via


ClaimActionCollectionMapExtensions.MapCustomJson Method

Definition

Overloads

MapCustomJson(ClaimActionCollection, String, Func<JObject,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, Func<JsonElement,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, String, Func<JObject,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, String, Func<JsonElement,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, Func<JObject,String>)

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * Func<Newtonsoft.Json.Linq.JObject, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, resolver As Func(Of JObject, String))

Parameters

claimType
String

The value to use for Claim.Type 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

MapCustomJson(ClaimActionCollection, String, Func<JsonElement,String>)

Source:
ClaimActionCollectionMapExtensions.cs

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<System.Text.Json.JsonElement,string> resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<System.Text.Json.JsonElement,string?> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * Func<System.Text.Json.JsonElement, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, resolver As Func(Of JsonElement, String))

Parameters

claimType
String

The value to use for Claim.Type 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

MapCustomJson(ClaimActionCollection, String, String, Func<JObject,String>)

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ valueType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * Func<Newtonsoft.Json.Linq.JObject, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, 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

MapCustomJson(ClaimActionCollection, String, String, Func<JsonElement,String>)

Source:
ClaimActionCollectionMapExtensions.cs

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ valueType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<System.Text.Json.JsonElement,string> resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<System.Text.Json.JsonElement,string?> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * Func<System.Text.Json.JsonElement, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, 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