Method EnrichPrincipalAsync(ClaimsPrincipal, long, long?, IEnumerable<string>, CancellationToken)

Assembly: redb.Identity.Core.dll

Loads applicable mappers, resolves their values and adds claims to
principal's identity. Existing claims with the same
are removed before the mapper-emitted
claim is added (mappers ALWAYS override values from
and other earlier sources for their claim type).

public Task EnrichPrincipalAsync(ClaimsPrincipal principal, long userId, long? applicationId, IEnumerable<string> requestedScopes, CancellationToken ct = default)