CustomJsonClaimAction Class
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.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for