ClaimActionCollection Class

Definition

A collection of ClaimActions used when mapping user data to Claims.

public ref class ClaimActionCollection : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimAction ^>
public class ClaimActionCollection : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction>
type ClaimActionCollection = class
    interface seq<ClaimAction>
    interface IEnumerable
Public Class ClaimActionCollection
Implements IEnumerable(Of ClaimAction)
Inheritance
ClaimActionCollection
Implements

Constructors

ClaimActionCollection()

Methods

Add(ClaimAction)

Add a claim action to the collection.

Clear()

Remove all claim actions.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Remove(String)

Remove all claim actions for the given ClaimType.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Extension Methods

DeleteClaim(ClaimActionCollection, String)

Delete all claims from the given ClaimsIdentity with the given ClaimType.

DeleteClaims(ClaimActionCollection, String[])

Delete all claims from the ClaimsIdentity with the given claimTypes.

MapAll(ClaimActionCollection)

Clears any current ClaimsActions and maps all values from the json user data as claims, excluding duplicates.

MapAllExcept(ClaimActionCollection, String[])

Clears any current ClaimsActions and maps all values from the json user data as claims, excluding the specified types.

MapCustomJson(ClaimActionCollection, String, Func<JObject,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, Func<JsonElement,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, String, Func<JObject,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapCustomJson(ClaimActionCollection, String, String, Func<JsonElement,String>)

Run the given resolver to select a value from the json user data to add as a claim. This no-ops if the returned value is empty.

MapJsonKey(ClaimActionCollection, String, String)

Select a top level value from the json user data with the given key name and add it as a Claim. This no-ops if the key is not found or the value is empty.

MapJsonKey(ClaimActionCollection, String, String, String)

Select a top level value from the json user data with the given key name and add it as a Claim. This no-ops if the key is not found or the value is empty.

MapJsonSubKey(ClaimActionCollection, String, String, String)

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

Select a second level value from the json user data with the given top level key name and second level sub key name and add it as a Claim. This no-ops if the keys are not found or the value is empty.

MapUniqueJsonKey(ClaimActionCollection, String, String)

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.

MapUniqueJsonKey(ClaimActionCollection, String, String, String)

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.

Applies to