Share via


ClaimActionCollectionUniqueExtensions.MapUniqueJsonKey Method

Definition

Overloads

MapUniqueJsonKey(ClaimActionCollection, String, String)

Selects a top level value from the json user data with the given key name and adds it as a Claim. This no-ops if the ClaimsIdentity already contains a Claim with the given ClaimType. This no-ops if the key is not found or the value is empty.

MapUniqueJsonKey(ClaimActionCollection, String, String, String)

Selects a top level value from the json user data with the given key name and adds it as a Claim. This no-ops if the ClaimsIdentity already contains a Claim with the given ClaimType. This no-ops if the key is not found or the value is empty.

MapUniqueJsonKey(ClaimActionCollection, String, String)

Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs

Selects a top level value from the json user data with the given key name and adds it as a Claim. This no-ops if the ClaimsIdentity already contains a Claim with the given ClaimType. This no-ops if the key is not found or the value is empty.

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

MapUniqueJsonKey(ClaimActionCollection, String, String, String)

Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs
Source:
ClaimActionCollectionUniqueExtensions.cs

Selects a top level value from the json user data with the given key name and adds it as a Claim. This no-ops if the ClaimsIdentity already contains a Claim with the given ClaimType. This no-ops if the key is not found or the value is empty.

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