Class ClaimMappersResolver

Assembly: redb.Identity.Core.dll

H5 (v1.0 DoD §5): Resolves declarative rules and applies
them to a at token-issuance time.

Resolution scope (in apply order, last write wins per ClaimType):
Global rules: parent_id IS NULL.Assigned Client Scope rules: parent_id IN (assigned scope ids).Per-application overlay rules: parent_id = applicationId.
Within the same precedence band, ascending breaks
ties (last in Order wins).


Mirror of Keycloak's "default scope mappers + assigned client scopes + client mappers"
composition, applied at the OpenIddict ProcessSignInContext stage.

public sealed class ClaimMappersResolver

Inheritance

Object→ClaimMappersResolver

Methods

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

Loads applicable mappers, resolves their values and adds claims to

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

Constructors