OAuth / OpenID Connect SSO Integration with Drupal as OAuth Provider
Overview
The Drupal OAuth Server SSO integration allows you to log in to any OAuth 2.0 or OpenID Connect (OIDC) compliant client applications using Drupal credentials. This SSO integration is achieved by the miniOrange OAuth server module. It supports multiple grant types, including Password grant, Client Credentials grant, Implicit grant, and Authorization grant type.
The module is compatible with all OAuth/OIDC clients such as Salesforce, Slack, AWS Cognito, Jira, Joomla, WordPress, Magento, Bitbucket, Azure AD B2C, Confluence, OSTicket, Grafana, Qlik Cloud, and is available for Drupal 7, Drupal 8, Drupal 9, Drupal 10 and Drupal 11.
Configuration Steps
Configure Drupal as an OAuth Server
- Go to Configuration → People → miniOrange OAuth Server Configuration in the Administration menu. (admin/config/people/oauth_server_sso/config_client)
- 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
- Now the Client ID and Secret will be displayed. Please copy this and keep it handy. This will be required while configuring the Client application.
- Please configure the Scope and Endpoints as specified in the table below in the Client application. (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 |
---|---|
Authorize Endpoint | {base_url_of_the_drupal_site}/mo/oauth2/authorize |
Access Token Endpoint | {base_url_of_the_drupal_site}/mo/oauth2/token |
Get User Info Endpoint | {base_url_of_the_drupal_site}/mo/oauth2/userinfo |
Need Assistance?
If you face any issues during the configuration or if you want some additional features, please contact us at drupalsupport@xecurify.com.