ClaimActionCollectionMapExtensions.MapJsonKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
- collection
- ClaimActionCollection
- 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)
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
- collection
- ClaimActionCollection
- 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.