Interface IUserProfileService
Unified user profile and claims service.
Single entry point for loading user data (Core + OIDC + groups)
and building a ClaimsPrincipal for any grant type or session.
public interface IUserProfileService
Methods
BuildPrincipalAsync(IRedbUser, UserProps?, Guid, IEnumerable<string>, bool, string?, CancellationToken)
Fast-path overload for callers that already loaded the Core user + OIDC props +
Task<ClaimsPrincipal?> BuildPrincipalAsync(IRedbUser user, UserProps? oidcProps, Guid subjectGuid, IEnumerable<string> scopes, bool mfaVerified = false, string? mfaMethod = null, CancellationToken ct = default)
BuildPrincipalAsync(long, IEnumerable<string>, bool, string?, OidcClaimsRequest?, CancellationToken)
Builds a for the given user with the specified scopes.
Task<ClaimsPrincipal?> BuildPrincipalAsync(long userId, IEnumerable<string> scopes, bool mfaVerified = false, string? mfaMethod = null, OidcClaimsRequest? claimsRequest = null, CancellationToken ct = default)