Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ClaimAction.Run Method

Definition

Namespace:
Microsoft.AspNetCore.Authentication.OAuth.Claims
Assembly:
Microsoft.AspNetCore.Authentication.OAuth.dll
Package:
Microsoft.AspNetCore.Authentication.OAuth v2.0.0
Package:
Microsoft.AspNetCore.Authentication.OAuth v2.1.0
Package:
Microsoft.AspNetCore.Authentication.OAuth v2.2.0
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.App.Ref v3.0.1
Package:
Microsoft.AspNetCore.App.Ref v3.1.10
Package:
Microsoft.AspNetCore.App.Ref v5.0.0
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8

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.

Overloads

Name Description
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(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(JObject, ClaimsIdentity, String)

Source:
ClaimAction.cs
Source:
ClaimAction.cs

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

public:
 abstract void Run(Newtonsoft::Json::Linq::JObject ^ userData, System::Security::Claims::ClaimsIdentity ^ identity, System::String ^ issuer);
public abstract void Run(Newtonsoft.Json.Linq.JObject userData, System.Security.Claims.ClaimsIdentity identity, string issuer);
abstract member Run : Newtonsoft.Json.Linq.JObject * System.Security.Claims.ClaimsIdentity * string -> unit
Public MustOverride Sub Run (userData As JObject, identity As ClaimsIdentity, issuer As String)

Parameters

userData
Newtonsoft.Json.Linq.JObject

The source data to examine. This value may be null.

identity
ClaimsIdentity

The identity to add Claims to.

issuer
String

The value to use for Claim.Issuer when creating a Claim.

Applies to

Run(JsonElement, ClaimsIdentity, String)

Source:
ClaimAction.cs

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

public:
 abstract void Run(System::Text::Json::JsonElement userData, System::Security::Claims::ClaimsIdentity ^ identity, System::String ^ issuer);
public abstract void Run(System.Text.Json.JsonElement userData, System.Security.Claims.ClaimsIdentity identity, string issuer);
abstract member Run : System.Text.Json.JsonElement * System.Security.Claims.ClaimsIdentity * string -> unit
Public MustOverride Sub Run (userData As JsonElement, identity As ClaimsIdentity, issuer As String)

Parameters

userData
JsonElement

The source data to examine. This value may be null.

identity
ClaimsIdentity

The identity to add Claims to.

issuer
String

The value to use for Claim.Issuer when creating a Claim.

Applies to


Feedback

Was this page helpful?