Dela via


ClaimActionCollectionMapExtensions Class

Definition

Extension methods for ClaimActionCollection.

public ref class ClaimActionCollectionMapExtensions abstract sealed
public static class ClaimActionCollectionMapExtensions
type ClaimActionCollectionMapExtensions = class
Public Module ClaimActionCollectionMapExtensions
Inheritance
ClaimActionCollectionMapExtensions

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

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

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.

Applies to