Search Results :

×

miniOrange Magento User Sync Integration with Keycloak

Keycloak User Sync is an easy-to-use plugin for Magento to facilitate the synchronization of user data between Keycloak, an identity management platform, and Magento. This plugin uses the Keycloak Rest API to fetch all the user's profiles from Keycloak to the Magento database. Seamless support for advanced sync features like bi-directional user sync, automatic user creation & deletion, group mapping, and many more. It provides a simple and secure way to keep user information in sync, allowing administrators to provision users and manage user data with manual, on-demand, or scheduler-based provisioning.

  • Purchase the Magento User Provisioning/User Sync extension from Magento Marketplace (Adobe Commerce Marketplace).
  • Go to My profile -> My Purchases.
  • Please ensure you are using correct access keys (My Profile - Access Keys).
  • Paste the access keys in your auth.json file inside your project.
  • Use the below command to add the extension to your project.
  • "composer require {module_name}:{version}"
  • You can see the module name and list of versions in the selector below the extension module name.
  • Run the following commands on command prompt to enable the extension.
  • php bin/magento setup:upgrade
  • Go to your Keycloak console and select your realm and click on Users. Ensure that your Realm does not have a space present in the name.
Get Started with Magento keycloak User sync Setup
  • Go to Users and click on the Add user button to create new user.
Magento Keycloak User Sync - Create user
  • On creating a new user enter the required details and click on Create.
Magento Keycloak User Sync - Create user successfully
  • After a user is created go to Credentials tab and click on the Set password button to set a password for the user.
Magento Keycloak User Sync - Create Password
  • Enter the user password and click on Save.
Magento Keycloak User Sync - Password created
Note: Disabling Temporary will make user password permanent.
  • Once the user password is set, go to the Role Mapping tab and assign the user a role of ‘manage-users’ under the ‘realm-management’ client roles.
Magento Keycloak User Sync - Role Mapping
  • Filter the roles by Filter by clients and search by user, select the realm-management, manage-users role and click on the Assign button.
Magento Keycloak User Sync-realm-management
  • To create a client click on the Clients section on the left panel and click on the Create Client button.
Magento Keycloak User Sync - Create Client
  • To create the client, enter the required details and click on the Next button.
Magento Keycloak User Sync - required details
Note: The Client ID should not have any spaces between.
  • In the next step, select only the Direct access grant type and click on the Save button.
Magento Keycloak User Sync - Direct access grant
  • All the configurations are completed on the Keycloak side. Let’s go to our Magento Keycloak sync plugin and complete the plugin configuration.
  • Go to the Configure Keycloak tab and enter the Keycloak Domain, Client ID and your Realm name from the Keycloak application that you created above.
  • To copy the Keycloak domain, go to your Keycloak console and copy the domain.
Magento Keycloak User Sync- Configure Keycloak
  • To copy the Client ID hover to your Keycloak settings and copy the client ID from there as shown below.
Magento Keycloak User Sync- Client ID
  • To copy the Realm name go to your Keycloak panel and copy the realm name.
Magento Keycloak User Sync - Realm Name
  • Enter the Username of any user (with the 'manage-users' permission) from your Keycloak application. This will be used for test configuration.
Magento Keycloak User Sync - Realm Name
  • Enter the copied Keycloak Server URL in the Keycloak Server URL field present on the Sync Configuration tab.
  • Copy the Client ID and paste it in the Client ID field in the Sync Configuration tab.
  • Then paste it in the Realm field in the Sync Configuration tab.
  • Enter the Test username here and then click on the Save Configuration button.
Magento Keycloak User Sync - Configuration
  • Under the Manual/ On demand Provisioning Section, you can enter the Username of the user you created with the permission of ‘manage-users’.
Magento Keycloak User Sync - Manual on on-demand
  • Under the Automatic Provisioning section, you can automate provisioning whenever a user is created, deleted and updated. You can also enable automatic sync of Magento user password.
Magento Keycloak User Sync - Automatic Provisioning
  • Congratulations, you have successfully verfied the User's Email address during registartion.

    You have successfully configured Keycloak User Sync with Magento. If you are looking for anything which you cannot find, please drop us an email on magentosupport@xecurify.com.


ADFS_sso ×
Hello there!

Need Help? We are right here!

support