Class LoginService
Verifies user credentials via external providers (if any) then falls back
to the local _users table. Single orchestration point for all
authentication: Login page, ROPC grant, Device code verification.
public sealed class LoginService
Inheritance
Methods
AuthenticateAsync(string, string, CancellationToken)
Validates username/password and returns the user on success.
public Task<LoginResult> AuthenticateAsync(string username, string password, CancellationToken ct = default)
LinkFederatedIdentityAsync(long, string, ExternalAuthResult, CancellationToken)
H8 (gap (b)): self-service link of a federated identity to an already-authenticated
public Task LinkFederatedIdentityAsync(long userId, string providerName, ExternalAuthResult ext, CancellationToken ct = default)
ListFederatedIdentitiesAsync(long, CancellationToken)
H8 (gap (b)): list all federated links for a user. Returned in stable order
public Task<IReadOnlyList<FederatedIdentityLink>> ListFederatedIdentitiesAsync(long userId, CancellationToken ct = default)
ResolveFederatedUserAsync(string, ExternalAuthResult, CancellationToken)
Resolves a federated user by reverse lookup on the [RedbUnique] LinkKey (one index probe).
public Task<LoginResult> ResolveFederatedUserAsync(string providerName, ExternalAuthResult ext, CancellationToken ct = default)
UnlinkFederatedIdentityAsync(long, string, CancellationToken)
H8 (gap (b)/(d)): self-service unlink. Returns false when no such link exists.
public Task<bool> UnlinkFederatedIdentityAsync(long userId, string providerName, CancellationToken ct = default)