Share via


ClaimActionCollectionMapExtensions.MapJsonSubKey Method

Definition

Overloads

MapJsonSubKey(ClaimActionCollection, String, String, String)

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

MapJsonSubKey(ClaimActionCollection, String, String, String)

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapJsonSubKey(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ jsonKey, System::String ^ subKey);
public static void MapJsonSubKey (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string subKey);
static member MapJsonSubKey : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * string -> unit
<Extension()>
Public Sub MapJsonSubKey (collection As ClaimActionCollection, claimType As String, jsonKey As String, subKey As String)

Parameters

claimType
String

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

jsonKey
String

The top level key to look for in the json user data.

subKey
String

The second level key to look for in the json user data.

Applies to

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapJsonSubKey(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ jsonKey, System::String ^ subKey, System::String ^ valueType);
public static void MapJsonSubKey (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string subKey, string valueType);
static member MapJsonSubKey : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * string * string -> unit
<Extension()>
Public Sub MapJsonSubKey (collection As ClaimActionCollection, claimType As String, jsonKey As String, subKey As String, valueType As String)

Parameters

claimType
String

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

jsonKey
String

The top level key to look for in the json user data.

subKey
String

The second level key to look for in the json user data.

valueType
String

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

Applies to