ClaimActionCollectionMapExtensions.MapAllExcept Method

Definition

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

C#
public static void MapAllExcept (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] exclusions);

Parameters

exclusions
String[]

The types to exclude.

Applies to

Product Versies
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0