Magento 2 Keycloak (SSO) Login permits the customers to log in to the Magento 2 retailer in a single click on with their Keycloak account. It allows the Magento 2 retailer admin to permit its customers to enter the credentials just one time.
The module provides the Magento 2 web site customers ease to register with their keycloak account.
Keycloak- Keycloak is an open-source software program answer that permits single sign-on with Identification and Entry Administration for contemporary functions and providers.
Furthermore, It provides a number of options resembling; Single-Signal-On (SSO), Identification Brokering and Social Login, Consumer Federation, Shopper Adapters, an Admin Console, and an Account Administration Console.
Options- Magento 2 Keycloak (SSO) Login
- The shoppers can log in with their Keycloak with a single click on.
- The shoppers need to enter their keycloak credentials just one time on the time of login.
- The client can create their Magento 2 account with a single click on.
- The customers have to enter their username and password of Keycloak account just one time.
Set up an Extension from Webkul Retailer
#1 Obtain Module
Firstly, you want to log in to Webkul Retailer, go to My Account>My Bought Merchandise part, confirm after which obtain and extract the contents of this zip folder on the system.
#2 Add Folder
As soon as the module zip is extracted, observe path src>app after which copy the app folder into the Adobe Commerce Cloud root listing on the server as proven under:

#3 Run Instructions
After importing the module folder, you want to run the next instructions within the Magento 2 root listing:
php bin/magento setup:improve
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
Keycloak Account Settings
The consumer has to enter a username or electronic mail and password for keycloak registration.

A profitable login to the Keycloak take us to the Keylock console and open the Grasp realm by default, We’ll think about making a customized realm right here.

So as to add a consumer, navigate to the Purchasers space of your Keycloak admin console and click on on Create button so as to add the consumer.

Moreover, the under settings should be performed.
Add Shopper
Import- Choose the file which you need to import.
Shopper ID- The consumer ID is required to enter right here.
Shopper Protocol- After that, choose the consumer protocol from the dropdown record.
Root URL- Enter the basis URL of the Magento 2 homepage right here.
Now, click on on the Save button so as to add a consumer.

Add Customers
Right here, we add customers to the keycloak so as to add a brand new consumer, navigate to the Customers web page and choose the Add consumer button on the far proper of the display.

Fill out the shape by coming into your electronic mail tackle, first and final title, after which click on the Save button as proven within the picture under.

Observe: We’ve got a CORS situation when keycloak and Magento2 are on completely different servers. To resolve this situation, the consumer has to enter the consumer URLs or Asterisk(*) within the Legitimate Redirect URL settings and Internet Origin settings within the keycloak consumer settings.

Admin Configurations-Magento 2 Keycloak (SSO) Login
To configure keycloak module, the admin has to navigate by way of Shops>Configurations>Keycloak Connector>Keycloak Configuration as proven within the picture.

Right here, the admin will make the next settings:
Allow Keycloak- Allow the standing of the module by deciding on Sure.
Realm-Now, enter the Realm title right here.
SSL Required- Ensures that every one communication to and from the Keycloak server is over HTTPS.
Auth Server URL- The admin will enter the Auth Server URL similar as Keycloak account.
Public Shopper- If set to Sure, the adapter is not going to ship credentials for the consumer to Keycloak.
Confidential Port- The confidential port utilized by the Keycloak server for protected SSL/TLS connections.
URL- Right here, the shop admin will enter the URL of the keycloak.
Shopper ID- The admin will enter the consumer ID which is created within the Keycloak account.
Buyer Finish Workflow- Magento 2 Keycloak (SSO) Login
The shoppers can register with their Keycloak account to the Magento 2 retailer with the button current proper under the Signal In button as proven within the screenshots.

This can redirect to the Keycloak and right here the client must enter their Keycloak credentials and they’re going to register to the Magento 2 retailer.

If you have already got a keycloak account and are logged in, you can be immediately signed in to Magento 2 retailer with the e-mail tackle you used to enroll in keycloak.

That’s all in regards to the Magento 2 Keycloak(SSO) Login. You probably have any queries concerning the plugin, please contact us at Webkul Help System.
You may as well examine our full Magento 2 extensions.
Present Product Model – 5.0.0
Supported Framework Model – 2.4.x