Share via


UniqueJsonKeyClaimAction 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 ClaimsIdentity already contains a Claim with the given ClaimType. This no-ops if the key is not found or the value is empty.

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

Constructors

UniqueJsonKeyClaimAction(String, String, String)

Creates a new UniqueJsonKeyClaimAction.

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