Search Results :

×

Login into Keycloak Using Magento Credentials | Magento as IDP Single Sign-On (SSO) in Keycloak

Login into Keycloak using Magento user credentials. This guide will help you integrate Magento as an Identity Provider (IdP) and Keycloak as a Service Provider (SP) using the miniOrange Magento IDP (Identity Provider) Extension. Magento as IDP extenstion gives you the ability to use your Magento credentials to login into Keycloak (SP). Here we will go through a step-by-step guide to configure SSO between Keycloak as SP (Service Provider) and Magento as IDP (Identity Provider).

  • Purchase the miniOrange SAML IDP Single Sign-On extension from Magento / 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 name.
  • Run the following commands on command prompt to enable the extension.
  • php bin/magento setup:upgrade
  • After installation, the miniOrange Magento IDP extension will appear in the left-hand section of the dashboard.
  • Magento SAML IDP  | Login with Magento Users - Magento SSO
  • Download the miniOrange Magento IDP Single Sign-On extension.
  • Unzip all contents of the zip inside the MiniOrange/IDPSaml directory.
  • {Root Directory of Magento} app code MiniOrange IDPSaml
  • Run the following commands on command prompt to enable the extension
  • php bin/magento setup:upgrade

  • Login into Keycloak Admin Console using your Keycloak credentials.
  • Now, go to the Identity providers from the left panel and select OpenID Connect v1.0.
  • Magento as SAML IDP - Search Tableau

  • Copy the Redirect URI to be used in your OAuth provider Configuration. Enter Login with Magento in the display name.
  • Magento as SAML IDP - Application Name

  • In the miniOrange IDP extension, go to Applications tab.
  • Magento as OAuth Server Add Application

  • Select OAuth/OpenID from the applications menu.
  • Magento as OAuth Server Select OAuth OIDC

  • Search for Custom OAuth in the choose application searchbox and select the application.
  • Magento as OAuth Server select WP

  • Enter the OAuth Client Name as Keycloak
  • Magento as OAuth Server OAuth Client name

  • Paste the Redirect URL/Callback URL copied earlier in the Redirect URL field.
  • Magento as OAuth Server Redirect Callback URL

  • Enter openid email profile in the scope field and save the changes.
  • Magento as OAuth Server Scope

  • Navigate to the Applications tab and click on Edit settings for your application
  • Magento as OAuth Server Edit App

  • You would see that the Client ID and Client Secret are automatically generated. Copy them and keep them handy.
  • Magento as OAuth Server Client ID

  • Paste the Client ID and Client Secret in the Keycloak application.
  • Magento as OAuth Server Client ID Secret into WP

  • Navigate back to the Magento IDP extension and Click on Click Here link to get the Magento OAuth Endpoints
  • Magento as OAuth Server endpoints

  • Here you would receive all the Endpoints. Copy them as requried.
  • Magento as OAuth Server Endpoints to Keycloak

  • Paste the Endpoints in the endpoints field in your Keycloak application
  • Magento as OAuth Server Endpoints to Keycloak
  • Now, Navigate to the Mappers tab in Keycloak and click on Add Mapper button.
  • Magento as OAuth Server Endpoints to Keycloak
  • Enter the Mapper Name and select Hardcoded Role in Mapper Type.
  • Magento as OAuth Server Endpoints to Keycloak
  • Now click on Select Role button.
  • Magento as OAuth Server Endpoints to Keycloak
  • Select the required role to that mapper as required and click on Assign button.
  • Magento as OAuth Server Endpoints to Keycloak
  • You will now notice that the Login with Magento button appears on the Keycloak admin login page..
  • Magento as OAuth Server Endpoints to Keycloak

  • In the miniOrange Magento IDP extension, navigate to the Applications tab and click on Edit settings for your application.
  • Magento as IDP - Edit app

  • Add the attribute name you want to send to your OAuth Server and select the attribute from the dropdown menu.
  • Magento as OAuth Server - Attribute Mapping

  • Click on Add Attribute and add the attribute name you want to send to your OAuth Client and select the attribute from the dropdown menu and click on Save Button to save changes.
  • Magento as OAuth Server - add and save attribute mapping

    You have successfully configured the SSO between Keycloak as OAuth Client and Magento as OAuth Server.




    Please reach out to us at magentosupport@xecurify.com, and our team will assist you with setting up the Magento IDP Extension. Our team will help you to select the best suitable solution/plan as per your requirement.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support