Search Results :

×

SAML Single Sign-On (SSO) in Moodle (SP) | Magento – Moodle SSO Login

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

  • Purchase the miniOrange SAML 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 SAML 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

  • Go to Moodle site.
  • Install and activate the miniOrange SAML SP module from the site on your Moodle site, which acts as a Service Provider.
  • Go to the miniOrange SAML SP module, navigate to the Service Provider Metadata tab. Here, you can find the Service Provider metadata such as SP Entity ID , ACS (Assertion Consumer Service) URL, Audience URI and NameID format which is required to configure the Identity Provider.
  • Magento SAML IDP - IDP metadata tab

  • In the miniOrange IDP (Identity Provider) extension, go to Applications tab and Click on Add Application button.
  • Magento as SAML IDP Add Application
  • Search for Moodle in the choose application searchbox and select the application.
  • Magento as SAML IDP - Search Moodle
  • Enter the Application name under SP Name.
  • Magento as SAML IDP - Application Name
  • Now, enter the SP Entity ID or Issuer and ACS URL copied earlier and save the details.
  • Magento SAML IDP Copy entity ID and ACS URL
  • Navigate to the Applications tab and click on Metadata settings for the Moodle application
  • IDP Metadata - Magento SAML IDP SSO
  • Here, you can find the Identity Provider Metadata URL /XML Metadata or endpoints like IDP Entity ID, SAML Login URL, SAML Logout URL (Premium Feature), Certificate. You can also download the IdP Metadata XML file which will be used for Moodle configuration.
  • IDP Metadata URL SAML Endpoints - Magento SAML IDP SSO
  • You will now have 3 options to provide the IDP Metadata to Moodle by downloading the XML Metadata, Metadata URL or providing the detials manually.
  • Option 1 - Download the XML Metadata.
  • Download the XML Metadata by clicking it on Download XML Metadata button.
  • Magento SAML IDP Download XML
  • Navigate to your Moodle and upload the XML metadata file downloaded and click on the Apply button.
  • Option 2 - Provide the details manually to the Moodle.
  • Copy the metadata details according to the table below.
  • Magento-SAML-IDP-Select-Paste metadata detials
    Moodle return URL SAML Login URL / Passive Login URL
    SAML Entity ID IDP-EntityID / Issuer
    SAML certificate and key files Certificate
  • Navigate to your Moodle and paste the metadata details.
  • In the miniOrange Magento IDP extension, navigate to the Applications tab and click on Edit settings for the Moodle application.
  • Magento as SAML IDP - Edit app
  • Add the attribute name you want to send to your service provider and select the attribute from the dropdown menu.
  • Magento as SAML IDP - Attribute Mapping
  • Click on "+" button to add the attribute and save changes.
  • Magento as SAML IDP - add and save attribute mapping

    You have successfully configured the SAML SSO between Moodle as SAML SP and Magento as SAML IDP.



ADFS_sso ×
Hello there!

Need Help? We are right here!

support