Class ClaimSchemaValidator

Assembly: redb.Identity.Core.dll

S2 — shared validator for global .
Used by both the admin user-management path
(UserManagementProcessor.Create/Update) and the public
self-service registration path (AccountRegisterProcessor) so the
schema is enforced uniformly regardless of how the user enters the
system.

Per-application definitions are NOT enforced here — those gate token
issuance time (a user may exist without ever signing into the app whose
schema requires them).

public static class ClaimSchemaValidator

Inheritance

Object→ClaimSchemaValidator

Methods

EnforceGlobalAsync(IRedbService, Dictionary<string, string>?, CancellationToken)

Validate incoming (may be null on create) against

public static Task<(Dictionary<string, string>? normalized, string? errorMessage)> EnforceGlobalAsync(IRedbService redb, Dictionary<string, string>? incoming, CancellationToken ct = default)