JsonKeyClaimAction Class

Definition

A ClaimAction that 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 key is not found or the value is empty.

public ref class JsonKeyClaimAction : Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimAction
public class JsonKeyClaimAction : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction
type JsonKeyClaimAction = class
    inherit ClaimAction
Public Class JsonKeyClaimAction
Inherits ClaimAction
Inheritance
JsonKeyClaimAction
Derived

Constructors

JsonKeyClaimAction(String, String, String)

Creates a new JsonKeyClaimAction.

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.

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 ClaimAction)
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 ClaimAction)

Applies to