Search Results :

×

SSO Login into Confluence using Drupal as OAuth / OpenID Connect Provider


The Drupal OAuth/OIDC Server module enables Single Sign-On i.e. SSO between the Drupal site and any Client application that supports the OAuth or OpenID Connect protocol. Here, we go through the steps to connect the module with the Confluence. In this Integration of Drupal and Confluence, Drupal acts as an Identity Provider i.e. users will be logging into Confluence using their Drupal credentials.

Installation Steps:


  • 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

Set up Confluence as an OAuth Client:

  • Log into the Confluence server.
  • In the top right corner, click on the Settings icon -> Manage apps.
  •  Drupal Confluence OAuth OIDC Provider - Login into Confluence , click on Settings -> Manage apps
  • Click on the Find new apps link.
  •  Drupal Confluence OAuth OIDC Provider - Scroll to Add-ons and click Find new apps
  • Search for mO Confluence OAuth under the search bar and install it.
  •  Drupal Confluence OAuth OIDC Provider - Search mO OAuth
  • Once the mO Confluence OAuth SSO app is installed, click on the Configure button
  •  Drupal Confluence OAuth OIDC Provider - Click on Overview - miniOrange OAuth Client
  • Click on the Add New Provider button.
  •  Drupal Confluence OAuth OIDC Provider - Click on Add New Provider
  • Select Custom OAuth from under the Select your Provider section.
  •  Drupal Confluence OAuth OIDC Provider - Select Custom OAuth
  • Copy the Callback URL and keep it handy.
  •  Drupal Confluence OAuth OIDC Provider - Copy Callback Redirect URL
  • Enter the Application Name in the App Name text field.
  •  Drupal Confluence OAuth OIDC Provider - Enter Application name

Create SSO Application in Drupal:

  • Navigate to the Drupal site and go to the Configuration -> miniOrange OAuth server configuration -> OAuth Client tab.
  • Click on the Add Client button to add a new application.
  • Enter the name of your application under the Application Name text field.
  • Paste the copied Callback URL into the Callback/Redirect URL text field. You can add multiple Callback URLs by clicking on the Add More button next to the Callback/Redirect URL text field.
  • Click on the Save button.

Integrating Confluence with Drupal:

  • Navigate to the OAuth Client tab of the Drupal OAuth Server module, go to the Configure Applications section and copy the Client ID.
  • Navigate to the Confluence dashboard and paste the copied Client ID into the Client ID text field.
  •  Integrating Confluence with Drupal OAuth/OIDC Provider - Paste client id into client id field in Confluence
  • Navigate back to the Drupal site and copy the Client Secret.
  • Paste the copied Client Secret into the Client Secret text field of your app in the Confluence dashboard.
  •  Integrating Confluence with Drupal OAuth/OIDC Provider - Paste client secret into client secret field in Confluence
  • Add the Scope and Endpoints as specified in the table below (You can also get the same from the Scope & Endpoints section of the Drupal site -> Configuration -> miniOrange OAuth server configuration -> OAuth 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
  •  Integrating Confluence with Drupal OAuth/OIDC Provider - Provide Scope and Endpoints in Confluence Application
  • Click on the Save button.
  •  Integrating Confluence with Drupal OAuth/OIDC Provider - Click on Save

Test Connection between Confluence and Drupal:

  • Now, click on the Test Configuration button to test the connection between Confluence and Drupal site.
  •  Integrating Confluence with Drupal OAuth/OIDC Provider - checking the Confluence and Drupal SSO connections

You have successfully configured Confluence as an OAuth Client and Drupal as an OAuth Server.

Let’s see how it works:

  • Open a new window/private browser and navigate to the login page of the Confluence website.
  • Click on the Use OAuth Login button.
  • Test Single Sign-On working with Confluence using Drupal OIDC Provider - Keep the remaining fields as default, if not sure of the configuration
  • Enter the Drupal credentials and click on the Log in button.
  • Login into Confluence using Drupal OIDC Provider
  • You will be logged into Confluence using Drupal credentials.

You have successfully performed the SSO between Confluence and Drupal!

Need Assistance?

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

Additional Features:

 Case Studies
miniOrange has successfully catered to the use cases of 400+ trusted customers with its highly flexible/customizable Drupal solutions. Feel free to check out some of our unique case studies using this link.
 Other Solutions
Feel free to explore other Drupal solutions that we offer here. The popular solutions used by our trusted customers include Two Factor Authentication - 2FA, Website Security, REST & JSON API Authentication, User Provisioning and Sync. 
  24*7 Active Support
The Drupal developers at miniOrange offer quick and active support for your queries. We can assist you from choosing the best solution for your use case to deploying and maintaining the solution.
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