You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/code/Magento/AdminAdobeIms/README.md
+16-15Lines changed: 16 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ To rebuild the minified css run the command `./node_modules/.bin/postcss -o dist
62
62
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.
63
63
64
64
In the ImsCallback Controller we get the access_token and then the user profile.
65
-
We then check if the assigned organization is valid and if the user does exist in the magento database, before we complete the user login in Magento.
65
+
We then check if the assigned organization is valid and if the user does exist in the Magento database, before we complete the user login in Magento.
66
66
67
67
If there went something wrong during the authorization, the user gets redirected to the admin login page and an error message is shown.
68
68
@@ -97,7 +97,7 @@ If token is not valid, session will be destroyed.
97
97
The logout from Adobe IMS Service is performed when Magento Admin User is logged out.
98
98
It's triggered by the event `controller_action_predispatch_adminhtml_auth_logout`
99
99
100
-
We do external LogOut by call to IMS. Session revoke is standard magento behavior
100
+
We do external LogOut by call to IMS. Session revoke is standard Magento behavior
101
101
102
102
# Admin Created Email
103
103
We created an Observer for the `admin_user_save_after` event. \
@@ -112,11 +112,11 @@ The notification mail will be sent inside our `AdminNotificationService` where w
112
112
# Error Handling
113
113
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.
114
114
115
-
###AdobeImsTokenAuthorizationException
115
+
###AdobeImsTokenAuthorizationException
116
116
Will be thrown when there was an error during the authorization. \
117
-
e. g. a call to AdobeIMS fails or there was no matching admin found in the magento database.
117
+
e. g. a call to AdobeIMS fails or there was no matching admin found in the Magento database.
118
118
119
-
###AdobeImsOrganizationAuthorizationException
119
+
###AdobeImsOrganizationAuthorizationException
120
120
Will be thrown when the admin user who wants to log in does not have the configured organization ID assigned to his AdobeIMS Profile.
121
121
122
122
### Error logging
@@ -128,26 +128,27 @@ Logging can be enabled or disabled in the config on changing the value for `adob
128
128
There you can switch the toggle for `Enable Logging for Admin Adobe IMS Module`
129
129
130
130
# Password usage in Admin UI
131
-
When the AdobeAdminIMS Module is enabled, we do not need any password fields in the magento admin backend anymore.
131
+
When the AdobeAdminIMS Module is enabled, we do not need any password fields in the Magento admin backend anymore.
132
132
133
-
So we hide the "Current User Verification" fields and removed the "Password" and "Password Confirmation" fields of the user forms.
134
-
This is done by the Plugin`\Magento\AdminAdobeIms\Plugin\RemovePasswordAndUserConfirmationFormFieldsPlugin`.
135
-
Here we remove the password and password confirmation field, and hide the current user verification fieldset.
133
+
So we removed the "Password" and "Password Confirmation" fields of the user forms.
134
+
This is done by the plugin`\Magento\AdminAdobeIms\Plugin\RemovePasswordAndUserConfirmationFormFieldsPlugin`.
135
+
Here we remove the password and password confirmation field.
136
136
As the verification field is just hidden, we set a random password to bypass the input filters of the Save and Delete user Classes.
137
-
The `\Magento\AdminAdobeIms\Plugin\RemoveUserValidationRulesPlugin` Plugin is required to remove the password fields from the form validation.
137
+
The `\Magento\AdminAdobeIms\Plugin\RemoveUserValidationRulesPlugin` plugin is required to remove the password fields from the form validation.
138
+
We update the "Current User Identity Verification" fieldset to add "Verify Identity with Adobe IMS" button instead "Your Password" field.
139
+
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`.
138
140
139
-
As we don't show the current user verification field anymore, we have the `\Magento\AdminAdobeIms\Plugin\ReplaceVerifyIdentityWithImsPlugin`Plugin to verify the `access_token` of the current admin user in AdobeIMS and only proceed when it is still valid.
141
+
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.
140
142
141
143
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.
142
144
This is done in the `\Magento\AdminAdobeIms\Plugin\UserSavePlugin`.
143
145
144
-
We also disabled the "Change password in 30 days" functionally, as we don't need the magento admin user password for the login.
146
+
We also disabled the "Change password in 30 days" functionally, as we don't need the Magento admin user password for the login.
145
147
This can be found in the `\Magento\AdminAdobeIms\Plugin\DisableForcedPasswordChangePlugin` and `\Magento\AdminAdobeIms\Plugin\DisablePasswordResetPlugin` Plugins.
146
148
147
149
When the AdminAdobeIMS Module is disabled, the user can not be log in when using an empty password.
148
150
Instead, the forgot password function must be used to reset the password.
149
151
150
-
151
152
# WEB API authentication using IMS ACCESS_TOKEN
152
153
When Admin Adobe IMS is enabled, Adobe Commerce admin users will stop having credentials (username and password).
153
154
These admin user credentials are needed for getting token that can be used to make requests to admin web APIs.
0 commit comments