Model

GenerateAuthenticationSecret

Magento\LoginAsCustomer\Model\GenerateAuthenticationSecret

What it does

This class generates an encrypted authentication secret token used when an admin user needs to log in as a customer.

The secret contains the customer ID, admin ID, and timestamp, serialized and encrypted for secure transmission.

Developers use this when implementing or extending the 'Login as Customer' functionality to create secure authentication tokens.

Public Methods

  • execute()