EmailIdpAdmin class
Collection of email-account admin methods.
Constructors
- EmailIdpAdmin({required EmailIdpUtils utils})
- Creates a new instance of EmailIdpAdmin.
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
-
createEmailAuthentication(
Session session, {required UuidValue authUserId, required String email, required String? password, Transaction? transaction}) → Future< UuidValue> - Creates an email authentication for the auth user with the given email and password.
-
deleteEmailAccount(
Session session, {required String email, Transaction? transaction}) → Future< void> - Deletes an email account by email address.
-
deleteEmailAccountByAuthUserId(
Session session, {required UuidValue authUserId, Transaction? transaction}) → Future< void> - Deletes all email accounts by authentication user ID.
-
deleteEmailAccountRequestById(
Session session, UuidValue accountRequestId, {Transaction? transaction}) → Future< void> - Deletes an account request by its ID.
-
deleteExpiredAccountRequests(
Session session, {Transaction? transaction}) → Future< void> - Deletes expired account creation requests.
-
deleteExpiredPasswordResetRequests(
Session session, {Transaction? transaction}) → Future< void> - Deletes all expired password reset requests.
-
deleteFailedLoginAttempts(
Session session, {Duration? olderThan, Transaction? transaction}) → Future< void> -
Cleans up the log of failed login attempts older than
olderThan. -
deletePasswordResetRequestsAttemptsForEmail(
Session session, {required String email, Transaction? transaction}) → Future< void> - Deletes all password reset request attempts for an email.
-
findAccount(
Session session, {required String email, Transaction? transaction}) → Future< EmailAccount?> - Gets an email authentication exists for the given email address.
-
findActiveEmailAccountRequest(
Session session, {required UuidValue accountRequestId, Transaction? transaction}) → Future< EmailAccountRequest?> - Checks whether an email account request is still pending, and if so returns the associated request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setPassword(
Session session, {required String email, required String password, Transaction? transaction}) → Future< void> - Sets the password for the authentication belonging to the given email.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited