Search Results :

×

Single Sign-On (SSO) Login into Drupal using Custom OAuth 2.0 / OpenID connect Provider

Drupal OAuth 2.0 / OpenID Connect (OIDC) SSO integration enables SSO between the Drupal site and any Identity Provider. This Integration is achieved by the miniOrange OAuth Client module which is compatible with Drupal 7, Drupal 8, Drupal 9, Drupal 10 as well as Drupal 11.

The module allows an external OpenID Connect login provider to authenticate and login users to the Drupal site. Check out the integration steps with some popular OAuth / OpenID providers like Azure AD, Azure AD B2C, Keycloak, Okta, Salesforce, Active Directory Federation Services (AD FS), AWS Cognito, Auth0, Microsoft Office 365, Github, Gitlab, OneLogin, Ping Identity, FusionAuth, WSO2 Identity Server, Bitbucket, Fitbit, Gluu, Onelogin, WildApricot, WHMCS, ForgeRock Identity Platform and many more.

The module is also compatible with social login providers such as Google, Discord, Slack, LinkedIn, Facebook, Instagram, Apple, Amazon, Yahoo, Pinterest, Snapchat, and Twitter (X).
In this document, we will go through the steps to configure the module:

Configure Drupal as an OAuth Client

  • Configure the callback/redirect URL in your IdP and complete the further steps.
  • Add the below details on the Drupal site (You will get these all from the OAuth provider).
  • Client ID Unique identifier for the OAuth 2 client application.
    Client Secret Confidential information used to authenticate the client.
    Scope The extent of access that the client is requesting from the user and authorization server.
    Authorize Endpoint: URL where the user is authenticated and grants permissions to the client.
    Access Token Endpoint: URL where the client exchanges authorization code for an access token.
    Get User Info Endpoint: Optional URL for retrieving user information
Drupal OAuth OpenID Single Single On - Prvoide the relative information from your IdP

  • The 'Send Client ID and Secret in Header or Body' checkbox allows you to specify whether the Client ID and Secret should be included in the header or the body of the Token Endpoint Request. If you're unsure which option to select, you can stick with the default settings.
  • Click on the checkbox to Enable Login with OAuth, scroll down, and click the Save Configuration button.
Drupal-OAuth-Client-SSO-Login-Enabling-the-required-checkbox-and-click-on-Save-Configuration

Integrating Drupal with Identity Provider:

  • Configure the callback/redirect URL in your IdP and complete the further steps.
  • Add the below details on the Drupal site (You will get these all from the OAuth provider).
  • Client ID Unique identifier for the OAuth 2 client application.
    Client Secret Confidential information used to authenticate the client.
    Scope The extent of access that the client is requesting from the user and authorization server.
    Authorize Endpoint: URL where the user is authenticated and grants permissions to the client.
    Access Token Endpoint: URL where the client exchanges authorization code for an access token.
    Get User Info Endpoint: Optional URL for retrieving user information
Okta OAuth/OIDC Single Sign On - Paste Realm Name and Domain Save Configuration

  • The Send Client-ID and Secret in checkbox allows you to specify whether the Client ID and Secret should be included in the header or the body of the Token Endpoint Request. If you're unsure which option to select, you can stick with the default settings.
  • Click on the checkbox to Enable Login with OAuth, scroll down, and click the Save Configuration button.
Drupal OAuth OpenID OIDC Single Sign On (SSO) Enabling the Login with OAuth checkbox and click Save Configuration

Test Connection between Drupal and OAuth Provider



 Thank you for your response. We will get back to you soon.

Something went wrong. Please submit your query again

We'll Reach Out to You at the Earliest!



ADFS_sso ×
Hello there!

Need Help? We are right here!

support