Single Sign-On fulfils the most basic requirement of authentication with a single set of credentials in any business environment, increasing the efficiency in maintaining user data. Here, we will explore one real-life case where users SSO in the Woocommerce WordPress site and a sync is required to create users in Keycloak (IDP). The WordPress SAML SSO Plugin enables secure authentication and provides Attribute and Role Mapping that allows syncing/mapping of user-profiles from the Keyclaok (IDP) to WooCommerce profile fields and also assigns roles based on the user's group.
You have a WordPress site to sell discount coupons for courses on an external LMS platform, and your users are stored in Keycloak.
WordPress Single Sign On SSO login with Azure, Azure B2C, Okta, ADFS, Keycloak, Salesforce, Ping, Onelogin, Gsuite, Shibboleth & many SAML IDPs [24/7 SUPPORT]
When the user reaches the checkout page before making the purchase, one of the following two scenarios can take place before completing the transaction:
To setup Single Sign-On with WordPress as your Service Provider and Keycloak as the Identity Provider follow the steps from the setup guide given here.
To setup User Sync from WooCommerce to Keycloak follow the steps given below:
Note: If your realm name has a space in it then API requests break so ensure that it does not have space.
After clicking save multiple configuration settings will appear, scroll down and apply the following client configurations and press save:
Applying Roles to the Client
Please fill the following fields with their required values in Keycloak User Sync Plugin:
Note: All fields are case sensistive.
|Server URL||Enter your Keycloak server URL with its scheme prefix(http/https) e.g. : https://example.com|
|Server Port||Enter the port no your Keycloak server is running on. By default, it is 8080.|
|Realm Name||Enter the name of the Keycloak realm in which you have configured a client in previous steps.|
|Group Name||Enter the name of the Keycloak user group in which you want to add all the synced user accounts.|
Note: If you have configured Keycloak IDP in the miniOrange SAML 2.0 SSO plugin the first two fields (Server URL & Server Port) will be populated with those values, you can edit them if needed.
Under Client Crendentials Grant Configuration, configure the following values:
You need to configure two fields for this grant:
This option allows your users to create accounts at checkout.
With the help of WordPress SAML SSO Plugin and Keycloak User Sync Plugin, you have configured your WooCommerce site to create users when they register on WordPress (SP) and successfully sync them in Keycloak (IDP). These users on registration will authenticate themselves using Keycloak to log into the WordPress WooCommerce site to purchase the discount coupons and Single Sign-On using Keycloak in the future.
Our WordPress SAML SSO Plugin supports integrations with a number of addons to extend the functionality of your site.
If you have any custom requirement, please contact us at email@example.com and we will help you achieve your use case.
miniOrange provides 24/7 support for all the Secure Identity Solutions. We ensure high quality support to meet your satisfaction.Sign Up
See for yourself what our customers say about us.
Easy and precise step-by-step instructions and videos to help you configure within minutes.Watch Demo
We offer Secure Identity Solutions for Single Sign-On, Two Factor Authentication, Adaptive MFA, Provisioning, and much more. Please contact us at
+1 978 658 9387 (US) | +91 97178 45846 (India) firstname.lastname@example.org
Need Help? We are right here!