CustomJsonClaimAction Class

Definition

A ClaimAction that selects the value from the JSON user data by running the given Func resolver.

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

Constructors

CustomJsonClaimAction(String, String, Func<JObject,String>)

Creates a new CustomJsonClaimAction.

CustomJsonClaimAction(String, String, Func<JsonElement,String>)

Creates a new CustomJsonClaimAction.

Properties

ClaimType

Gets the value to use for Valuewhen creating a Claim.

(Inherited from ClaimAction)
Resolver

The Func that will be called to select value from the given 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