|
1 | | -# Magento_LoginAsCustomer module |
| 1 | +# Magento_LoginAsCustomerApi module |
2 | 2 |
|
3 | | -The Magento_LoginAsCustomerApi module provides API for ability to login into customer account for an admin user. |
| 3 | +This module provides API for ability to login into customer account for an admin user. |
| 4 | + |
| 5 | +### Public APIs |
| 6 | + |
| 7 | +- `\Magento\LoginAsCustomerApi\Api\Data\AuthenticationDataInterface`: |
| 8 | + - contains authentication data |
| 9 | + |
| 10 | +-`\Magento\LoginAsCustomerApi\Api\Data\IsLoginAsCustomerEnabledForCustomerResultInterface`: |
| 11 | + - contains the result of the check whether the login as customer is enabled |
| 12 | + |
| 13 | +- `\Magento\LoginAsCustomerApi\Api\AuthenticateCustomerBySecretInterface`: |
| 14 | + - authenticate a customer by secret |
| 15 | + |
| 16 | +- `\Magento\LoginAsCustomerApi\Api\ConfigInterface`: |
| 17 | + - check if Login as Customer extension is enabled |
| 18 | + - check if store view manual choice is enabled |
| 19 | + - get authentication data expiration time (in seconds) |
| 20 | + |
| 21 | +- `\Magento\LoginAsCustomerApi\Api\DeleteAuthenticationDataForUserInterface`: |
| 22 | + - delete authentication data by user id |
| 23 | + |
| 24 | +- `\Magento\LoginAsCustomerApi\Api\GenerateAuthenticationSecretInterface`: |
| 25 | + - generate authentication secret |
| 26 | + |
| 27 | +- `\Magento\LoginAsCustomerApi\Api\GetAuthenticationDataBySecretInterface`: |
| 28 | + - get authentication data by secret |
| 29 | + |
| 30 | +- `\Magento\LoginAsCustomerApi\Api\GetLoggedAsCustomerAdminIdInterface`: |
| 31 | + - get id of admin logged as customer |
| 32 | + |
| 33 | +- `\Magento\LoginAsCustomerApi\Api\GetLoggedAsCustomerCustomerIdInterface`: |
| 34 | + - get id of customer admin is logged as |
| 35 | + |
| 36 | +- `\Magento\LoginAsCustomerApi\Api\IsLoginAsCustomerEnabledForCustomerInterface`: |
| 37 | + - check if login as customer functionality is enabled for customer |
| 38 | + |
| 39 | +- `\Magento\LoginAsCustomerApi\Api\IsLoginAsCustomerSessionActiveInterface`: |
| 40 | + - check if Login as Customer session is still active |
| 41 | + |
| 42 | +- `\Magento\LoginAsCustomerApi\Api\SaveAuthenticationDataInterface`: |
| 43 | + - save authentication data. Return secret key |
| 44 | + |
| 45 | +- `\Magento\LoginAsCustomerApi\Api\SetLoggedAsCustomerAdminIdInterface`: |
| 46 | + - set id of admin logged as customer |
| 47 | + |
| 48 | +- `\Magento\LoginAsCustomerApi\Api\SetLoggedAsCustomerCustomerIdInterface`: |
| 49 | + - set id of customer admin is logged as |
| 50 | + |
| 51 | +For information about a public API in Magento 2, see [Public interfaces & APIs](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/api-concepts.html). |
| 52 | + |
| 53 | +## Additional information |
| 54 | + |
| 55 | +This module is a part of Login As Customer feature. |
| 56 | + |
| 57 | +[Learn more about Login As Customer feature](https://docs.magento.com/user-guide/customers/login-as-customer.html). |
0 commit comments