Search Results :

×

SSO Login into Joomla using Drupal as an OAuth / OpenID Connect Provider

Drupal SSO integration will allow the users to log in to Joomla using the Drupal site Credentials. This SSO integration is achieved by the miniOrange OAuth / OpenID Connect server module which uses the OAuth 2.0 and OpenID Connect protocol. The module is compatible with all OAuth / OpenID Connect clients and is available for Drupal 7, Drupal 8, Drupal 9, Drupal 10, and Drupal 11.

In this setup guide, we will help you configure the Single Sign-on login using the OAuth protocol between the Drupal site and the Joomla.

  • Download the module:
    composer require 'drupal/oauth_server_sso'
  • Go to Extend menu on your Drupal admin console and enable the module by enabling the checkbox and click on Install button.
  • Configure the module at:
    {BaseURL}/admin/config/people/oauth_server_sso/config_client
  • Install the module:
    drush en oauth_server_sso
  • Clear the cache:
     drush cr
  • Configure the module at:
    {BaseURL}/admin/config/people/oauth_server_sso/config_client
  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the Drupal OAuth / OIDC Provider - Single Sign On (SSO) module either by downloading the zip or from the URL of the package (tar/zip).
  • Click on Enable newly added modules.
  • Enable this module by checking the checkbox and click on Install button.
  • Configure the module at
    {BaseURL}/admin/config/people/oauth_server_sso/config_client
  • Download the miniOrange OAuth Client plugin for Joomla.
  • Login into your Joomla site’s administrator console.
  • From the left Toggle Menu, navigate to SystemExtensions.
drupal oauth server joomla install

  • Upload the downloaded zip file to install the Joomla OAuth Client plugin.
Drupal-Bamboo-as-OAuth-Client-Click-Find-New-Apps

  • From the Toggle Menu, go to Components -> miniOrange OAuth Client -> Configure OAuth tab.
  • Select Custom OAuth or Custom OpenID Connect App.
Joomla OAuth Client Single Sign-On - Select Custom Application

  • Copy the Callback URL.
Joomla OAuth Client Single Sign-On - Copy Redirect Callback URL

  • Go to Configuration → People → miniOrange OAuth Server Configuration in the Administration menu. (admin/config/people/oauth_server_sso/config_client)
Drupal-OAuth Server - select miniorange oauth serever configuration
  • Under the OAuth Client tab in the Add Client section enter the application name into the Application Name and paste the previously copied callback URL from the OAuth client into the Callback/Redirect URL text field.
  • Multiple Callback URLs can be added by clicking on the Add More button next to the text field.
  • Click on the Save button
Drupal OAuth Server - Add client - paste callback url
  • Navigate to the Joomla dashboard and paste the copied Client ID and Client Secret into the respective field.
Joomla OAuth Client Single Sign-On - Paste the copied Client ID and Client Secret into respective text fields

  • Add the Endpoints as specified in the table below (You can also get the same from the Scope & Endpoints section of the Drupal siteConfigurationminiOrange OAuth server configurationOAuth Client):
  • Scope profile openid email
    Authorization Endpoint {base_url_of_the_drupal_site}/mo/oauth2/authorize
    Token Endpoint {base_url_of_the_drupal_site}/mo/oauth2/token
    Get User Information Endpoint {base_url_of_the_drupal_site}/mo/oauth2/userinfo
Joomla OAuth Client Single Sign-On - Paste the Endpoints into the corresponding fields

  • Click on the Save Settings after that the Test Configuration button.
Joomla OAuth Client Single Sign-On - Click on Save Settings then Test Configuration button

  • Once the test is successful, scroll down to the Attribute Mapping section, and from the Email Attribute dropdown select the Drupal attribute name in which the email is received from Drupal.
Joomla OAuth Client Single Sign-On - Select Email Attribute

  • From the Username Attribute dropdown select the Drupal attribute in which the username is received from Drupal.
Joomla OAuth Client Single Sign-On - Select Username Attribute from drop-down

  • Click on the Save Attribute Mapping button.
Joomla OAuth Client Single Sign-On - Click on Save Attribute Mapping

  • Copy the Login / SSO URL from the Joomla dashboard.
Joomla OAuth Client Single Sign-On - Copy Login / SSO URL

  • Open a new window/private browser and navigate to the link copied. It will redirect you to the Drupal login page.
  • Enter the Drupal Credentials and click on the Log in button.
Enter the Drupal credentials in Drupal login page

You will be logged into Joomla using Drupal credentials.

If you face any issues during the configuration or if you want some additional features, please contact us at drupalsupport@xecurify.com.

ADFS_sso ×
Hello there!

Need Help? We are right here!

support
Contact miniOrange Support
success

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com