Interface IExternalUserProvider
SPI for pluggable external authentication providers (LDAP, SAML, OIDC federation, etc.).
Implementations are registered in DI and tried in order by
before falling back to the local _users password check.
public interface IExternalUserProvider
Properties
ProviderName
Provider identifier, e.g. "ldap", "oidc:google", "saml:corp".
string ProviderName { get; }
Methods
AuthenticateAsync(string, string, CancellationToken)
Attempts to authenticate username / password
Task<ExternalAuthResult?> AuthenticateAsync(string username, string password, CancellationToken ct = default)