EmailIdpAuthenticationUtil class
Authentication utilities for the email identity provider.
The main entry point is the authenticate method, which can be used to authenticate a user.
This class also contains utility functions for administration tasks, such as deleting failed login attempts.
Constructors
- EmailIdpAuthenticationUtil({required Argon2HashUtil hashUtil, required RateLimit failedLoginRateLimit})
- Creates a new instance of EmailIdpAuthenticationUtil.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authenticate(
Session session, {required String email, required String password, required Transaction? transaction}) → Future< UuidValue> - Returns the AuthUser's ID upon successful email/password verification.
-
deleteFailedLoginAttempts(
Session session, {Duration? olderThan, String? email, required Transaction transaction}) → Future< void> -
Cleans up the log of failed login attempts older than
olderThan. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited