Log in
Model

Authenticate

Magento\Customer\Model\AccountManagement\Authenticate

What it does

This class handles customer authentication in Magento 2 by validating email and password credentials.

Developers use this when implementing custom login functionality or authentication flows, as it checks account status (locked, email confirmed), verifies credentials, and dispatches authentication events.

It provides a centralized, secure way to authenticate customers across the application.

Public Methods

  • execute()