Search Results :

×

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

Login into Rocket.Chat using Magento user credentials. This guide will help you integrate Magento as an Identity Provider (IdP) and Rocket.Chat 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 Rocket.Chat (SP). Here we will go through a step-by-step guide to configure SSO between Rocket.Chat as SP (Service Provider) and Magento as IDP (Identity Provider).

  • Purchase the miniOrange Magento IDP Single Sign-On extension from Magento 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
  • 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 to the Rocket.Chat with administrator credentials.
  • From the left navigation menu, go to Administration -> Workspace.
  • Magento Rocket.Chat OIDC Single Sign-On - Navigate to Administration -> Workspace

  • Navigate to the Settings tab from the left navigation menubar.
  • Magento Rocket.Chat OIDC Single Sign-On - Go to Settings

  • Now, search for OAuth and click on the Open button.
  • Magento Rocket.Chat OIDC Single Sign-On - Search for OAuth and click Open button

  • Click on the Add custom OAuth button present on the top right corner of the screen.
  • Magento Rocket.Chat OIDC Single Sign-On - Click on Add custom OAuth

  • Enter the application name under the Give a unique name for the custom OAuth text field and click on the Add button.
  • Magento Rocket.Chat OIDC Single Sign-On - Give a unique name for the custom OAuth field then click Add button

  • Select the created application from the list of applications and expand it.
  • Copy the Callback URL.
  • Magento Rocket.Chat OIDC Single Sign-On - Copy the Callback URL and keep it handy
  • In the miniOrange IDP extension, go to Applications tab and Click on Add Application button.
  • Magento as IDP Add Application

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

  • Search for Rocket.Chat in the choose application searchbox and select the application.
  • Magento as IDP Choose App

  • Enter the OAuth Client Name as Rocket.Chat
  • Magento as IDP client name

  • Paste the Redirect URL copied earlier in the Redirect URL field.
  • Magento as IDP redirect URL

  • Enter openid email profile in the scope field and save the changes.
  • Magento as IDP scope

  • Navigate to the Applications tab and click on Edit settings for your application
  •  Magento as IDP edit app

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

  • Paste the Client ID and Client Secret in the Rocket.Chat.
  • Navigate back to the Magento IDP extension and Click on Click Here link to get the Magento OAuth Endpoints
  • Magento as IDP go to endpoints

  • Here you would receive all the Endpoints. Copy them as requried.
  • Magento as IDP copy endpoints

  • Paste the Endpoints in the endpoints field in your Rocket.Chat and click on Finish to save the configuration.
  • 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 Rocket.Chat 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