Search Results :

×

Zendesk SSO Login with Drupal OAuth Client | Drupal Zendesk Login


Drupal Zendesk SSO integration will allow you to configure Single Sign-On ( SSO ) login between your Drupal site and Zendesk using OAuth/OpenID protocol. Drupal OAuth 2.0/OpenID connect module gives the ability to enable login using OAuth 2.0/OIDC Single Sign-On to Drupal Site. We provide the Drupal OAuth/OpenID Client module for Drupal 7, Drupal 8, and Drupal 9.
Here we will go through a guide to configure the SSO login between Drupal and Zendesk. By following these steps, users of Zendesk will be able to log into the Drupal site using their Zendesk credentials.
If you have any queries or if you need any sort of assistance in configuring the module, you can contact us at drupalsupport@xecurify.com. If you want, we can also schedule an online meeting to help you configure the Drupal OAuth & OpenID Connect Login – OAuth2 Client SSO Login module.

Installation Steps:


  • Download the module:
    composer require 'drupal/miniorange_oauth_client'
  • Navigate to Extend menu on your Drupal admin console and search for miniOrange OAuth Client Configuration using the search box.
  • Enable the module by checking the checkbox and click on the Install button.
  • You can configure the module at:
    {BaseURL}/admin/config/people/miniorange_oauth_client/config_clc
  • Install the module:
    drush en drupal/miniorange_oauth_client
  • Clear the cache:
     drush cr
  • You can configure the module at:
    {BaseURL}/admin/config/people/miniorange_oauth_client/config_clc
  • Navigate to Extend menu on your Drupal admin console and click on Install new module.
  • Install the Drupal OAuth & OpenID Connect Login - OAuth2 Client SSO 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.
  • You can configure the module at:
    {BaseURL}/admin/config/people/miniorange_oauth_client/config_clc

How to integrate Zendesk Single Sign-on with Drupal OAuth/OpenID Client

1. Setup Drupal as OAuth Client

  • After installing the module, go to the Configuration tab and click on miniOrange OAuth Client Configuration module link.
  • Drupal OAuth Client - Configuration tab and select miniorange oauth client module
  • Navigate to the Configure OAuth tab, enter the following information.
    • Select Zendesk from the Select Application dropdown list.
    • Copy the Callback/Redirect URL and keep it handy.
    • Enter the name of application in Display Name text field. For example, Zendesk
    • Drupal OAuth Client - Configure OAuth tab Select zendesk and copy the Callback URL

2. Configure SSO Application in Zendesk

  • Go to https://www.zendesk.com/login/ and sign up/login.
  • Navigate to setting Icon form left side menu.
  • Zendesk SSO Login Settings ICons
  • Support Settings are in Admin Center. Go to Admin Center. Click on it.
  • Zendesk SSO Login Click on Admin Center
  • Select Apps and integration and then Zendesk API from the left-hand menu.
  • Zendesk SSO Login - Select Zendesk API
  • Enable the checkbox and click on the Get started button.
  • Zendesk SSO Login - Enable Checkbox and click on Get Started
  • Click on OAuth Clients tab then click on Add OAuth Client button.
  • Zendesk SSO Login Click on Add OAuth Client button
  • Enter the Client name and paste the previously copied Callback URL into the Redirect URLs text field. Click on the Save button.
  • Zendesk SSO Login Paste Callback URL

3. Integrating Drupal with Zendesk

  • Go to the Zendesk portal.
  • Navigate to the OAuth Clients tab and copy the Client name. This is your Client ID.
  • Zendesk SSO - Copy Client name
  • In Drupal’s Configure OAuth tab paste the copied Client name in the Client ID text field.
  • Drupal OAuth OpenID Single Single On Paste Client Name
  • In Zendesk's OAuth Clients tab click on Copy button to copy Secret.
  • Zendesk sso login Copy Secret value
  • In Drupal's Configure OAuth tab paste the Secret into the Client Secret text field.
  • Drupal OAuth OpenID Single Single On Paste Secret into Client Secret
  • Navigate to the Zendesk Dashboard and click on Setting Icon. From the right side, copy the Domain.
  • Zendesk SSO Integration - Copy the Domain URL
  • In Drupal's Configure OAuth tab replace the copied Domain with the {subdomain} in the Authorize Endpoint, Access Token Endpoint, and Get User Info Endpoint text fields, respectively. Click on the Save Configuration button.
  • Drupal OAuth Client - Paste copied domain url

    You can also refer to the Zebdesk Endpoints and scope from the table given below:

    Scope: read write
    Authorize EndPoint: https://{subdomain}.zendesk.com/oauth/authorizations/new
    Access Token Endpoint: https://{subdomain}.zendesk.com/oauth/tokens
    Get User Info Endpoint: https://{subdomain}.zendesk.com/api/v2/users/me.json

4. Test Configuration of Drupal with Zendesk

  • After successfully saving the configurations, click on the Perform Test Configuration button to test the connection between Drupal and Zendesk.
  • Zendesk sso login with drupal OAuth OpenID Single Single On Zendesk test Configuration
  • This Test Configuration window will provide you with a list of the attributes that are received from the Zendesk
  • Select the Email Attribute from the dropdown menu in which the user's email ID is obtained and click on the Done button.
  • Zendesk sso login with drupal OAuth OpenID Single Single On Zendesk test Configuration successfully
  • Once clicked on Done button, you will be redirected to the Attribute & Role Mapping tab, in which you can select the Username Attribute from the dropdown list and click on Save Configuration button.
  • Zendesk sso login with drupal OAuth OpenID Single Single On Zendesk test Configuration successfully

    Please note: Mapping the Email Attribute is mandatory for your login to work.

  • Now log out and go to your Drupal site’s login page. You will automatically find a Login with Zendesk link there. If you want to add the SSO link to other pages as well, please follow the steps given in the image below :
  • Zendesk sso login with drupal OAuth OpenID Single Single On Zendesk test Configuration successfully

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/OpenID Single Sign On module.

Additional Resources

Our Other modules

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