Skip to content

Commit c542c84

Browse files
magento-docsdshevtsov
authored andcommitted
Updated Module Reference Guide data for the 2.4.6 release
1 parent 35b2b45 commit c542c84

File tree

152 files changed

+372
-588
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

152 files changed

+372
-588
lines changed

src/data/navigation/sections/module_reference.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -739,11 +739,6 @@ module.exports = [
739739
path: "/module-reference/module-elasticsearch-7/"
740740
},
741741

742-
{
743-
title: "Elasticsearch8",
744-
path: "/module-reference/module-elasticsearch-8/"
745-
},
746-
747742
{
748743
title: "ElasticsearchCatalogPermissions",
749744
path: "/module-reference/module-elasticsearch-catalog-permissions/"
@@ -1784,6 +1779,16 @@ module.exports = [
17841779
path: "/module-reference/module-purchase-order-rule-graph-ql/"
17851780
},
17861781

1782+
{
1783+
title: "QuickCheckout",
1784+
path: "/module-reference/module-quick-checkout/"
1785+
},
1786+
1787+
{
1788+
title: "QuickCheckoutAdminPanel",
1789+
path: "/module-reference/module-quick-checkout-admin-panel/"
1790+
},
1791+
17871792
{
17881793
title: "QuickOrder",
17891794
path: "/module-reference/module-quick-order/"

src/pages/module-reference/module-admin-adobe-ims.md

Lines changed: 10 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,16 @@ description: README.md contents of the module from the source code
44
---
55

66
# Magento_Admin_Adobe_Ims module
7-
87
The Magento_Admin_Adobe_Ims module contains integration with Adobe IMS for backend authentication.
98

109
For information about module installation in Magento 2, see [Enable or disable modules](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html).
1110

1211
# CLI command usage:
13-
1412
## bin/magento admin:adobe-ims:enable
15-
1613
Enables the AdminAdobeIMS Module. \
1714
Required values are `Organization ID`, `Client ID`, `Client Secret` and `2FA enabled`
1815

1916
### Argument Validation
20-
2117
On enabling the AdminAdobeIMS Module, the input arguments will be validated. \
2218
The pattern for the validation are configured in the di.xml
2319

@@ -32,23 +28,20 @@ The pattern for the validation are configured in the di.xml
3228
</type>
3329
```
3430

35-
We check if the arguments are not empty, as they are all required.
31+
We check if the arguments are not empty, as they are all required.
3632

3733
For the Organization ID, Client ID and Client Secret, we check if they contain only alphanumeric characters. \
3834
Additionally for the Organization ID, we check if it matches 24 characters and optional has the suffix `@AdobeOrg`. But we only store the ID and ignore the suffix.
3935
Also make sure 2FA is enabled for the Organization in Adobe Admin Console.
4036

4137
## bin/magento admin:adobe-ims:disable
42-
4338
Disables the AdminAdobeIMS Module.
4439
When disabling, the `Organization ID`, `Client ID` and `Client Secret` values will be deleted from the config.
4540

4641
## bin/magento admin:adobe-ims:status
47-
4842
Shows if the AdminAdobeIMS Module is enabled or disabled
4943

5044
## bin/magento admin:adobe-ims:info
51-
5245
Example of getting data if Admin Adobe Ims module is enabled:\
5346
Client ID: 1234567890a \
5447
Organization ID: 1234567890@org \
@@ -57,13 +50,11 @@ Client Secret configured
5750
If Admin Adobe Ims module is disabled, cli command will show message "Module is disabled"
5851

5952
# Admin Login design
60-
6153
The admin login design changes when the AdminAdobeIms module is enabled and configured correctly via the CLI command.
6254
We have added the customer layout handle `adobe_ims_login` to deal with all the design changes.
6355
This handle is added via `\Magento\AdminAdobeIms\Plugin\AddAdobeImsLayoutHandlePlugin::afterAddDefaultHandle`.
6456

6557
The layout file `view/adminhtml/layout/adobe_ims_login.xml` adds:
66-
6758
* The bundled [Adobe Spectrum CSS](https://opensource.adobe.com/spectrum-css/).
6859
* New classes to current Magento html items,
6960
* Our new "Login with Adobe ID" button template,
@@ -73,7 +64,6 @@ We have included the minified css and the used svgs from Spectrum CSS with our m
7364
To rebuild the minified css run the command `./node_modules/.bin/postcss -o dist/index.min.css index.css` after npm install from inside the web directory.
7465

7566
# AdminAdobeIMS Callback
76-
7767
For the AdobeIMS Login we provide a redirect_uri on the request. After a successful Login in AdobeIMS, we get redirected to provided redirect_uri.
7868

7969
In the ImsCallback Controller we get the access_token and then the user profile.
@@ -82,25 +72,22 @@ We then check if the assigned organization is valid and if the user does exist i
8272
If there went something wrong during the authorization, the user gets redirected to the admin login page and an error message is shown.
8373

8474
# Organization ID Validation
85-
8675
During the authorization we check if the configured `Organization ID` provided on the enabling CLI command is assigned to the user.
8776

8877
In the profile response from Adobe IMS must be a `roles` array. There we have all assigned organizations to the user.
8978

9079
We compare if the configured organization ID does exist in this array and also the structure of the organization ID is valid.
9180

9281
# Admin Backend Login
93-
9482
Login with the help Adobe IMS Service is implemented. The redirect to Adobe IMS Service is performed-
9583
The redirect from Adobe IMS is done to \Magento\AdminAdobeIms\Controller\Adminhtml\OAuth\ImsCallback controller.
9684

9785
The access code comes from Adobe, the token response is got on the basis of the access code,
98-
client id (api key) and client secret (private key).
99-
The token response access token is used for getting user profile information.
86+
client id (api key) and client secret (private key).
87+
The token response access token is used for getting user profile information.
10088
If this is successful, the admin user will be logged in and the access tokens is added to session as well as token_last_check_time value.
10189

10290
# ACCESS_TOKEN saving in session and validation
103-
10491
When AdminAdobeIms module is enabled, we check each 10 minutes if ACCESS_TOKEN is still valid.
10592
For this when admin user login and when session is started, we add 2 extra variables to the session:
10693
token_last_check_time is current time
@@ -112,14 +99,12 @@ If token is valid, value token_last_check_time will be updated to current time a
11299
If token is not valid, session will be destroyed.
113100

114101
# Admin Backend Logout
115-
116102
The logout from Adobe IMS Service is performed when Magento Admin User is logged out.
117103
It's triggered by the event `controller_action_predispatch_adminhtml_auth_logout`
118104

119105
We do external LogOut by call to IMS. Session revoke is standard Magento behavior
120106

121107
# Admin Created Email
122-
123108
We created an Observer for the `admin_user_save_after` event. \
124109
There we check if the customer object is newly created or not. \
125110
When a new admin user got created in Magento, he will then receive an email with further information on how to login.
@@ -130,42 +115,37 @@ They are called `admin_adobe_ims_email_header_template` and `admin_adobe_ims_ema
130115
The notification mail will be sent inside our `AdminNotificationService` where we can add and modify the template variables.
131116

132117
# Error Handling
133-
134118
For the AdminAdobeIms Module we have two specific error messages and one general error message which are shown on the Admin Login page when an error occured.
135119

136120
### AdobeImsTokenAuthorizationException
137-
138121
Will be thrown when there was an error during the authorization. \
139122
e. g. a call to AdobeIMS fails or there was no matching admin found in the Magento database.
140123

141124
### AdobeImsOrganizationAuthorizationException
142-
143125
Will be thrown when the admin user who wants to log in does not have the configured organization ID assigned to his AdobeIMS Profile.
144126

145127
### Error logging
146-
147128
Whenever an exception is thrown during the Adobe IMS Login, we will log the specific exception message but show a general error message on the admin login form.
148129

149-
Errors are logged into the `/var/log/admin_adobe_ims.log` file.
130+
Errors are logged into the `/var/log/admin_adobe_ims.log` file.
150131

151132
Logging can be enabled or disabled in the config on changing the value for `adobe_ims\integration\logging_enabled` or in the Magento Admin Configuration under `Advanced > Developer > Debug`. \
152133
There you can switch the toggle for `Enable Logging for Admin Adobe IMS Module`
153134

154135
# Password usage in Admin UI
155-
156136
When the AdobeAdminIMS Module is enabled, we do not need any password fields in the Magento admin backend anymore.
157137

158138
So we removed the "Password" and "Password Confirmation" fields of the user forms.
159139
This is done by the plugin `\Magento\AdminAdobeIms\Plugin\RemovePasswordAndUserConfirmationFormFieldsPlugin`.
160-
Here we remove the password and password confirmation field.
140+
Here we remove the password and password confirmation field.
161141
As the verification field is just hidden, we set a random password to bypass the input filters of the Save and Delete user Classes.
162142
The `\Magento\AdminAdobeIms\Plugin\RemoveUserValidationRulesPlugin` plugin is required to remove the password fields from the form validation.
163143
We update the "Current User Identity Verification" fieldset to add "Verify Identity with Adobe IMS" button instead "Your Password" field.
164144
This is done by the plugins: `Magento\AdminAdobeIms\Plugin\Block\Adminhtml\User\Edit\Tab\AddReAuthVerification`, `Magento\AdminAdobeIms\Plugin\Block\Adminhtml\System\Account\Edit\AddReAuthVerification`, `Magento\AdminAdobeIms\Plugin\Block\Adminhtml\User\Role\Tab\AddReAuthVerification` and `Magento\AdminAdobeIms\Plugin\Block\Adminhtml\Integration\Edit\Tab\AddReAuthVerification`.
165145

166146
As we update the current user verification field, we have the `\Magento\AdminAdobeIms\Plugin\ReplaceVerifyIdentityWithImsPlugin` plugin to verify the `AdobeReAuthToken` of the current admin user in AdobeIMS and only proceed when it is valid.
167147

168-
For the newly created user will be a random password generated, as we did not modify the admin_user table, where the password field can not be null.
148+
For the newly created user will be a random password generated, as we did not modify the admin_user table, where the password field can not be null.
169149
This is done in the `\Magento\AdminAdobeIms\Plugin\UserSavePlugin`.
170150

171151
We also disabled the "Change password in 30 days" functionally, as we don't need the Magento admin user password for the login.
@@ -175,13 +155,12 @@ When the AdminAdobeIMS Module is disabled, the user can not be log in when using
175155
Instead, the forgot password function must be used to reset the password.
176156

177157
# WEB API authentication using IMS ACCESS_TOKEN
178-
179158
When Admin Adobe IMS is enabled, Adobe Commerce admin users will stop having credentials (username and password).
180159
These admin user credentials are needed for getting token that can be used to make requests to admin web APIs.
181160
It means that will be not possible to create token because admin doesn't have credentials. In these case we have to use IMS access token.
182161

183162
`\Magento\AdminAdobeIms\Model\Authorization\AdobeImsTokenUserContext` new implementation for `\Magento\Authorization\Model\UserContextInterface` was created.
184-
In the implementation IMS access token is validated and read to get created_at and expires_in data.
163+
In the implementation IMS access token is validated and read to get created_at and expires_in data.
185164
If access_token_hash already exists in admin_adobe_ims_webapi table, then we can get admin_user_id.
186165
If access_token_hash does not exist in admin_adobe_ims_webapi table, then we have to make request to IMS service to get Adobe user profile, that contain email.
187166
Using email from Adobe user profile we can check if admin user with these email exists in Magento. If so, we save relevant data into admin_adobe_ims_webapi table.
@@ -199,13 +178,11 @@ Both of values are checked in function isTokenExpired \Magento\AdminAdobeIms\Mod
199178
it means that with default values is not possible to use tokens that older than 4h.
200179

201180
### IMS access token verification.
202-
203-
To verify token a public key is required. For more info https://wiki.corp.adobe.com/display/ims/IMS+public+key+retrieval
181+
To verify token a public key is required. For more info https://wiki.corp.adobe.com/display/ims/IMS+public+key+retrieval
204182
In Admin Adobe Ims module was defined path where certificate has to be downloaded from.
205183
By default, in config.xml, these value for production.
206184
For testing reasons, developers can override this value, for example in env.php file like this:
207-
208-
```php
185+
```
209186
'system' => [
210187
'default' => [
211188
'adobe_ims' => [
@@ -216,7 +193,6 @@ For testing reasons, developers can override this value, for example in env.php
216193
]
217194
]
218195
```
219-
220196
Certificate value is cached.
221197

222198
This authentication mechanism enabled for REST and SOAP web API areas.
@@ -226,15 +202,13 @@ curl -X GET "{domain}/rest/V1/customers/2" -H "Authorization: Bearer AddAdobeIms
226202
curl -X GET "{domain}/rest/V1/products/24-MB01" -H "Authorization: Bearer AddAdobeImsAccessToken"
227203

228204
### Two-factor authentication.
229-
230205
During CLI enablement of the module, the admin user is asked, whether 2FA is enabled for Organization in Adobe Admin Console.
231206
If the answer is yes, Magento TFA module (if it's present in the code base), should be disable.
232207

233208
For this purpose the additional config value was added, this config value is read by Magento_TwoFactorAuth module.
234209
If the config value is not there, the Magento_TwoFactorAuth functionality works by default.
235210

236211
# Updated Current User Identity Verification
237-
238212
The AdobeAdminIms Module updates the handling of the current user identity verification.
239213

240214
Instead of providing the current user password, the user needs to call the AdobeIms reAuth function.
@@ -244,7 +218,7 @@ By clicking on this button a popup opens with the AdobeIms Login, where the curr
244218
After successfully validate his identity, we are redirecting to the `Magento/AdminAdobeIms/Controller/Adminhtml/OAuth/ImsReauthCallback.php` Controller and update the `ims_verified` field.
245219

246220
When the form will be submitted, we verify the identity with the `Magento/AdminAdobeIms/Plugin/ReplaceVerifyIdentityWithImsPlugin.php` Plugin.
247-
Here the existence of the `AdobeAccessToken` and `AdobeReAuthToken` will be checked.
221+
Here the existens of the `AdobeAccessToken` and `AdobeReAuthToken` will be checked.
248222
The reauth_token will be used to call the AdobeIms validateToken Endpoint.
249223

250224
When this call is successful, the form will be submitted, otherwise we update the Message of the thrown `AuthenticationException` to return a matching error message, done by the `Magento/AdminAdobeIms/Plugin/PerformIdentityCheckMessagePlugin.php` Plugin.

src/pages/module-reference/module-admin-analytics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ title: AdminAnalytics
33
description: README.md contents of the module from the source code
44
---
55

6-
The Magento\AdminAnalytics module gathers information about the features Magento administrators use. This information will be used to help improve the user experience on the Magento Admin.
6+
The Magento\AdminAnalytics module gathers information about the features Magento administrators use. This information will be used to help improve the user experience on the Magento Admin.

src/pages/module-reference/module-admin-gws.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ description: README.md contents of the module from the source code
55

66
# AdminGws
77

8-
**AdminGws** provides configuration management within the Global, Website, and Store data scopes. Restrictions can be
8+
**AdminGws** provides configuration management within the Global, Website, and Store data scopes. Restrictions can be
99
imposed on various system elements through configurations that are applied at the desired level.

src/pages/module-reference/module-adobe-commerce-events-client.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,25 @@ For development purposes this package can be added to Magento `composer.json` as
2222
```
2323

2424
And in the `require` section:
25-
2625
```json
2726
"magento/module-adobe-commerce-events-client": "*"
2827
```
2928

3029
### Admin panel configuration
3130

3231
After adding this package to Magento, the following changes should be made in the admin panel (navigate to Stores > Settings > Configuration > Adobe Services > Adobe I/O Events > Commerce events):
33-
3432
- Set `Enabled` to `Yes`
3533
- Enter a `Merchant ID`
3634
- Enter a `Environment ID`
3735

3836
## CLI commands defined by module
3937

4038
This module defines the following CLI commands:
41-
4239
- events:subscribe
4340
- events:unsubscribe
4441
- events:list
4542
- events:list:all
4643
- events:info
4744
- events:metadata:populate
4845

49-
Please see [documentation](https://developer.adobe.com/commerce/events/get-started/commands/) for details on using these commands.
46+
Please see [documentation](https://developer.adobe.com/commerce/events/get-started/commands/) for details on using these commands.

src/pages/module-reference/module-adobe-commerce-events-generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: README.md contents of the module from the source code
77

88
This module defines the following CLI command:
99

10-
```shell
10+
```
1111
bin/magento events:generate:module
1212
```
1313

src/pages/module-reference/module-adobe-io-events-client.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Provider and custom Events Metadata.
1313
# Usage
1414

1515
This is a two-step process:
16-
1716
1. We will create an Event Provider, this is required once per Adobe Commerce instance
1817
2. We will update the Events Metadata, this should happen during the deployment phase
1918

@@ -24,15 +23,12 @@ This is a two-step process:
2423
- Populate the `Service Account Private Key` and `Adobe I/O Workspace Configuration` fields
2524
- Enter a unique ID in the `Adobe Commerce Instance ID` field
2625
4. Run the following command to create an event provider
27-
28-
```bash
29-
bin/magento events:create-event-provider --label "<unique_provider_label>" --description "<provider description>"
30-
```
31-
26+
```bash
27+
bin/magento events:create-event-provider --label "<unique_provider_label>" --description "<provider description>"
28+
````
3229
5. Enter the Event Provider ID output by the command in the `Adobe I/O Event Provider ID` field
3330

3431
# Update Events Metadata
35-
3632
Events Metadata in the following format can optionally be stored in `app/etc/event-types.json`:
3733

3834
```json
@@ -53,7 +49,6 @@ Events Metadata in the following format can optionally be stored in `app/etc/eve
5349
```
5450

5551
To update the metadata using the `app/etc/event-types.json` file, add the following step to your `ece-tool` or deployment script:
56-
5752
```bash
5853
bin/magento events:sync-events-metadata
5954
```

src/pages/module-reference/module-advanced-checkout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ description: README.md contents of the module from the source code
55

66
Magento\AdvanceCheckout extends Magento_Checkout with following functions: adding product to cart by entering SKU on
77
frontend, uploading list of SKUs to add products to cart on frontend and ability for admin to manage customer's shopping
8-
cart.
8+
cart.

src/pages/module-reference/module-advanced-rule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ description: README.md contents of the module from the source code
44
---
55

66
AdvancedRule module enhances the performance of rule processing.
7+

src/pages/module-reference/module-advanced-sales-rule.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ description: README.md contents of the module from the source code
44
---
55

66
AdvancedSalesRule module enhances the performance of sale rule processing.
7+

0 commit comments

Comments
 (0)