Interface IExternalUserProvider

Assembly: redb.Identity.Core.dll

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

Priority

Lower value = tried first. Default providers should use 100+.

int Priority { get; }

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)