Setup Slack App for Drupal OAuth Client

miniOrange Drupal OAuth/OpenID module gives the ability to enable OAuth/OpenID Single Sign On for Drupal site. Drupal OAuth Client module is compatible with all OAuth/OpenID Providers. Here we will go through a guide to configure SSO between Drupal and Slack. By the end of this guide, Slack users should be able to login and register to Drupal site.
If you have any doubts or queries you can contact us at drupalsupport@xecurify.com. We will help you to configure the module.

Step 1: Setup Slack as OAuth Provider

  • Go to https://api.slack.com/apps and login to your Slack account.
  • Create an app : Go to the Create App page. Click on Create an App option.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO Login API Create New App
  • Enter App name and Development Slack Workshop. App name can be anything and by default Slack Workshop is Group but you can sign in to another workspace.
  • Click On Create App.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO Create a Slack App Name
  • Here you can create your own workspace.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO API Workspaces Slack URL
  • Copy Client ID and Client Secret.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO API App Credential
  • Add Redirect URL : Go to OAuth & Permis sions, enter Callback URL (copied from plugin) under Redirect URLs text field and after that click on Save URLs.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO API Features OAuth Permissions
  • Then, scroll Down to Scopes section and add necessary scopes like so and then click on Save Changes. Most importantly, these scopes must be the same on the miniOrange OAuth Client Application Configuration page.
  • Drupal OAuth OpenID OIDC Single Sign On (SSO) Slack SSO API Scope Application
  • Slack Endpoints and Scope :
  • Scope users.profile:read
    Authorize Endpoint https://slack.com/oauth/authorize
    Access Token Endpoint https://slack.com/api/oauth.access
    Get User Info Endpoint https://slack.com/api/users.profile.get