ClaimActionCollectionMapExtensions.MapJsonSubKey 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
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)
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
- 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.
- subKey
- String
The second level key to look for in the json user data.
Applies to
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.
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
- 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.
- 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.