LoginAsCustomer Module
AuthenticateCustomerBySecret
This class handles the authentication process for the 'Login as Customer' feature, allowing an admin to log into the storefront as a specific customer...
AuthenticationData
This class is a data transfer object that stores authentication information when an admin user logs in as a customer. It holds the customer ID being i...
Config
This class provides configuration settings for the Login as Customer feature in Magento 2. Developers use it to check if the feature is enabled, wheth...
GenerateAuthenticationSecret
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...
GetAuthenticationDataBySecret
This class decrypts and validates authentication secrets used in the Login as Customer feature. It ensures the secret token contains valid admin and c...
GetLoggedAsCustomerAdminId
This class retrieves the admin user ID when an administrator is logged in as a customer. Developers use this to identify which admin user is currently...
GetLoggedAsCustomerCustomerId
This class retrieves the customer ID of the customer that an admin user is currently logged in as. Developers use this when they need to identify whic...
IsLoginAsCustomerEnabledForCustomerResult
This class represents the result of checking whether the 'Login as Customer' feature is enabled for a specific customer. It stores validation messages...
Resolver\IsLoginAsCustomerEnabledResolver
This resolver determines whether the Login as Customer feature is available for a specific customer. Developers use this class to check if an admin us...
ResourceModel\DeleteAuthenticationDataForUser
This class removes all 'Login as Customer' authentication records associated with a specific admin user from the database. Developers would use this w...
ResourceModel\IsLoginAsCustomerSessionActive
This class checks if an active 'Login as Customer' session exists for a specific customer and admin user combination. Developers use this to verify wh...
ResourceModel\SaveAuthenticationData
This class handles saving authentication data when an admin user initiates a 'Login as Customer' session. It generates a random secret key, encrypts i...
SetLoggedAsCustomerAdminId
This class sets the admin user ID in the customer session when an administrator logs in as a customer. Developers use this when implementing or extend...
SetLoggedAsCustomerCustomerId
This class stores the customer ID in the admin session when an admin user logs in as a customer. Developers use this to track which customer account a...