JsonSubKeyClaimAction Class

Definition

A ClaimAction that selects 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 ref class JsonSubKeyClaimAction : Microsoft::AspNetCore::Authentication::OAuth::Claims::JsonKeyClaimAction
public class JsonSubKeyClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.JsonKeyClaimAction
type JsonSubKeyClaimAction = class
    inherit JsonKeyClaimAction
Public Class JsonSubKeyClaimAction
Inherits JsonKeyClaimAction
Inheritance
JsonSubKeyClaimAction

Constructors

JsonSubKeyClaimAction(String, String, String, String)

Creates a new JsonSubKeyClaimAction.

Properties

ClaimType

Gets the value to use for Valuewhen creating a Claim.

(Inherited from ClaimAction)
JsonKey

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

(Inherited from JsonKeyClaimAction)
SubKey

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

ValueType

Gets the value to use for ValueType when creating a Claim.

(Inherited from ClaimAction)

Methods

Run(JObject, ClaimsIdentity, String)

Examine the given userData json, determine if the requisite data is present, and optionally add it as a new Claim on the ClaimsIdentity.

Run(JObject, ClaimsIdentity, String)

Examine the given userData json, determine if the requisite data is present, and optionally add it as a new Claim on the ClaimsIdentity.

(Inherited from JsonKeyClaimAction)
Run(JsonElement, ClaimsIdentity, String)

Examine the given userData JSON, determine if the requisite data is present, and optionally add it as a new Claim on the ClaimsIdentity.

Run(JsonElement, ClaimsIdentity, String)

Examine the given userData JSON, determine if the requisite data is present, and optionally add it as a new Claim on the ClaimsIdentity.

(Inherited from JsonKeyClaimAction)

Applies to