Delen via


ClaimActionCollectionMapExtensions.MapJsonKey Method

Definition

Overloads

MapJsonKey(ClaimActionCollection, String, String)

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

MapJsonKey(ClaimActionCollection, String, String, String)

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

MapJsonKey(ClaimActionCollection, String, String)

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

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

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

Applies to

MapJsonKey(ClaimActionCollection, String, String, String)

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

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

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

valueType
String

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

Applies to