WordPress as OAuth Client and Drupal as OAuth Server

WordPress as OAuth Client and Drupal as OAuth Server


Drupal WordPress SSO Integration will allow you to configure Single Sign-On ( SSO ) login between your Drupal site and WordPress. WordPress SSO integration with your Drupal site will help your users to login into WordPress using their Drupal credentials.

This SSO setup will also help you to manage your users in one single place. The Drupal OAuth Server module is compatible with Drupal 7, Drupal 8 as well as Drupal 9. Here we will go through a step-by-step guide to configure OAuth Server SSO login between WordPress as OAuth Client and Drupal as OAuth Server.

If you have any doubts or queries, you can contact us at drupalsupport@xecurify.com. We will help you to configure the module. If you want, we can also schedule an online meeting to help you configure the Drupal OAuth 2.0 Server ( OAuth / OIDC Provider ) Single Sign-On ( SSO ) module.



Pre-requisite: Download and Installation 


  • For Window:
    composer require drupal/oauth_server_sso
  • For Linux:
    composer require 'drupal/oauth_server_sso'
  • Go to Extend menu on your Drupal admin console and enable the 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 module:
    drush dl oauth_server_sso
  • 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 Server - (OAuth/OIDC Provider Single Sign-On) Login 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

1. Setup WordPress as OAuth Client

  • Log into your WordPress instance.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a WordPress OAuth Single Sign-On (SSO) plugin and click on Install Now button.
  • Once installed click on the Activate button.
  • Go to Configure OAuth tab and click on the Add New Application to add a new client application into your website.
  • drupal oauth server WordPress install
  • Search Drupal in the search box and select the application.
  • drupal oauth server WordPress upload file
  • Copy the Callback URL to be used in OAuth Provider Configuration and click on the Next button.
  • drupal oauth server Wordpress plugin dashboard

2. Configure Drupal as OAuth Server

  • Click on the Configuration from the top navigation bar and Select Drupal OAuth Server Configuration.
  • Drupal OAuth Server - Configure module
  • Enter the Client Name and Authorized Redirect / Callback URL (copied in step 1) from the WordPress OAuth Client plugin.
  • Drupal OAuth Server - Configure module
  • After that, click on the Next button to find the Client ID, Client Secret, Scope, and Enpoints to complete your WordPress OAuth Client configuration.
  • Drupal OAuth Server - Client ID Client Secret

3. Configure Endpoints in WordPress

  • Copy Authorization Endpoint, Access Token Endpoint, and Get User Info Endpoint from the OAuth Client tab of the Drupal OAuth Server Configuration.
  • drupal oauth server WordPress plugin dashboard
  • Paste copied endpoints in the Authorized Endpoint, Token Endpoint, and Userinfo Endpoint fields and click on the Next button.
  • drupal oauth server WordPress plugin dashboard

4. Configure Client ID and Client Secret in WordPress

  • Navigate to the Drupal OAuth Server Configuration module and copy the Client ID, Client Secret, and Scope from there.
  • drupal oauth server WordPress Client id Client Secret
  • Paste the Client ID, Client Secret, and Scopes into the Configure OAuth tab of the WordPress OAuth Client module, under the Client Credentials Setup box. Then, click on the Next button.
  • drupal oauth server WordPress Client id Client Secret
  • Check your configuration and then click on the Finish button.
  • Single Sign-On (SSO) between two Drupal Sites - Finish configuration

5. Test Configuration of WordPress

  • After successfully configuring OAuth Provider, go to Configure OAuth tab and click on the Test Configuration button.
  • drupal oauth server WordPress save configuration
  • You have successfully configured your WordPress as an OAuth Client and Drupal as an OAuth Server.
  • drupal oauth server WordPress Test configuration

24*7 Active Support

If you face any issues or if you have any questions, please feel free to reach out to us at drupalsupport@xecurify.com. In case you want some additional features to be included in the module, please get in touch with us, and we can get that custom-made for you. Also, If you want, we can also schedule an online meeting to help you configure the Drupal OAuth 2.0 Server Single Sign-On (OAuth/OIDC) module or call us at +1 978 658 9387.

Free Trial

If you would like to test out the module to ensure your business use case is fulfilled, we do provide a 7-day trial. Please drop us an email at drupalsupport@xecurify.com requesting a trial. You can create an account with us using this link.

Additional Resources

Our Other modules

Hello there!

Contact us for exciting offers

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