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

Features and Pricing

Know more about Drupal OAuth Server module from here.

Pre-requisites: Download

You can download the Drupal OAuth Server ( OAuth / OIDC Provider) - Single Sign On ( SSO ) module from here.

1. Drupal OAuth Server Installation

    1.1. Using Composer:
    • 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 the install button.
    • Configure the module at
      {BaseURL}/admin/config/people/oauth_server_sso/customer_setup
    1.2. Using Drush:
    • 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/customer_setup
    1.3. Manual installation:
    • Go to Extend menu on your Drupal admin console and click on Install new module.
    • Install the Drupal OAuth Server 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 the install button.
    • Configure the module at 
      {BaseURL}/admin/config/people/oauth_server_sso/customer_setup

2. Configure 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.
  • Once installed click on Activate.
  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
  • drupal oauth server Wordpress install
  • Choose your Application from the list of OAuth / OpenID Connect Providers, Here Drupal.
  • drupal oauth server Wordpress upload file
  • Copy the Callback URL to be used in OAuth Provider Configuration and click Next.
  • drupal oauth server Wordpress plugin dashboard
  • Now, configure App Name, Authorization Endpoint, Token Endpoint, Userinfo Endpoint received from Drupal OAuth Server. Click Next.
  • drupal oauth server Wordpress plugin dashboard
  • Configure the client credentials like Client ID & Client Secret as shown in the setup dialogue box and enter the scope value as profile.Then, click Next.
  • drupal oauth server Wordpress Client id Client Secret

    3. Wordpress integration with Drupal

  • In the OAuth Client tab, Enter the OAuth Client name and then paste the Callback URL that you copied earlier and save it under the Authorized Redirect URL. Then click on the Next button to continue.
  • drupal oauth server Single Sign On SSO - Add Client
  • It will show you the Client ID, Client Secret and the Endpoints. Copy the Client ID, Client Secret, Scope and the Endpoints and keep it handy. You will be needing these values later to save them in your Wordpress client application.
  • drupal oauth server Single Sign On SSO -Configuration

    4. Test Configuration of Wordpress

  • After successfully configuring OAuth Provider, go to OAuth Provider tab and configure OAuth Provider Name, Client ID, Client Secret, Scope and provided endpoints.
  • Click on the Save button to save the settings.
  • drupal oauth server Wordpress save configuration
  • After successful configuration Click on the Test Configuration button.
  • You have successfully configured your Wordpress as an OAuth Client.

    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