LoginAsCustomer Module

AuthenticateCustomerBySecret

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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...