Log in
Interface

AuthenticationInterface

Magento\Customer\Model\AuthenticationInterface

What it does

This interface defines the contract for customer authentication operations in Magento 2.

Developers use this to authenticate customers with their credentials, track authentication failures, and manage account locking/unlocking when too many failed login attempts occur.

It's essential for implementing security features like brute-force protection and account lockout mechanisms.

Public Methods

  • processAuthenticationFailure()
  • unlock()
  • isLocked()
  • authenticate()