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 passwords, handle failed login attempts, lock/unlock customer accounts after multiple failed attempts, and check if an account is currently locked.
It's essential for implementing secure login flows and protecting customer accounts from brute force attacks.
Public Methods
- processAuthenticationFailure()
- unlock()
- isLocked()
- authenticate()