Search Results :

×

Configure Slack Single Sign-On (SSO) with OAuth for WordPress

OAuth & OpenID Connect Single Sign-On (SSO) plugin for WordPress enables secure login into WordPress using Slack as OAuth and OpenID Connect provider. You can also configure the plugin using different custom providers and standard IdPs. It supports advanced Single Sign-On (SSO) features such as user profile Attribute mapping, Role mapping, etc. Here we will go through a guide to configure SSO between WordPress and Slack. By the end of this guide, users should be able to login to WordPress from Slack. To know more about other features we provide in the OAuth Single Sign-On (OAuth & OpenID Connect Client) plugin for WordPress, you can click here.

  • Log into your WordPress instance as an admin.
  • Go to the WordPress Dashboard -> Plugins and click on Add New.
  • Search for a OAuth Single Sign On (SSO) Plugin for WordPress and click on Install Now.
  • Once installed click on Activate.
  • First of all, go to https://api.slack.com/apps and log into your Slack account.
  • You will be presented with the following screen. Click on Create new App.
Configure Slack SSO (Single Sign-On) - Create New App

  • Choose how you'd like to configure your app's scopes and settings.
Configure Slack SSO (Single Sign-On) - Select App Configuration

  • You will be shown a form where you have to enter Application Name and Development Slack Workspace. Fill the form with appropriate information and click on Create App.
Configure Slack SSO (Single Sign-On) - Name App and Workspace

  • After creating the Slack application, you will be brought to the Application Management page. Scroll down to the "App Credentials" section. Here you will find the given Client ID and Client Secret for your Slack application. Copy these credentials and keep them handy, you will require them later to configure the miniOrange OAuth Client Single Sign-On plugin.
Configure Slack SSO (Single Sign-On) - Client ID and Client Secret

  • Go to OAuth & Permissions.
Configure Slack SSO (Single Sign-On) - OAuth Permissions

  • Add Redirect URL: In the Slack application's Redirect URLs section, click on Add New Redirect URL and enter the Redirect URLs which you will get from the miniOrange OAuth Client Single Sign-On (SSO) plugin. Click on Save URLs button.
Configure Slack SSO (Single Sign-On) - Redirect URLs

Configure Slack SSO (Single Sign-On) - Save Redirect URLs

  • Scroll down and go to the Scope section, click on Add an OAuth scope button.
Configure Slack SSO (Single Sign-On) - Add OAuth Scope

  • Select scope from the dropdown list and Save Changes. These scopes must be the same on the miniOrange OAuth Application Configuration page.
Configure Slack SSO (Single Sign-On) - Add Scope

You have successfully configured Slack as OAuth Provider for achieving Slack login into your WordPress Site.


  • Go to Configure OAuth tab and click Add New Application to add a new client application into your website.
Single Sign-On (SSO) OAuth for WordPress - Add New Application

  • Choose your Application from the list of OAuth / OpenID Connect Providers, here Slack.
Single Sign-On (SSO) OAuth for WordPress - Select Application

  • Copy the Callback URL to be used in OAuth Provider Configuration and click Next.
Single Sign-On (SSO) OAuth for WordPress - Callback URL

  • Please refer the below table for configuring the scope & endpoints for Slack in the plugin.
  • Client ID : from step 1 above
    Client Secret : from step 1 above
    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
  • Now, configure App Name, Authorization Endpoint, Token Endpoint, Userinfo Endpoint received from OAuth Server. Click Next.
Single Sign-On (SSO) OAuth for WordPress - App Name

  • Configure the client credentials like Client ID & Client Secret as shown in the setup dialogue box and enter the scope value as users.profile:read. Click Next.
Single Sign-On (SSO) OAuth for WordPress - Client ID and Client Secret

  • Click on the Finish button.
Single Sign-On (SSO) OAuth for WordPress - Finish Configuration

You have successfully configured WordPress as OAuth Client for achieving user authentication with Slack Single Sign-On (SSO) login into your WordPress Site.

  • Go to the Configure OAuth tab in the Plugin and search for Slack in the applications list and select Slack.
Single Sign-On (SSO) OAuth for WordPress - Add New Application

  • Configure App Name, Client ID, Client Secret, Scope and Endpoints from the Slack SSO application.
  • Please refer the below table for configuring the scope & endpoints for Slack in the plugin. And click on Save button.
  • 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
Single Sign-On (SSO) OAuth for WordPress - Add App Name

You have successfully configured WordPress as OAuth Client for achieving user authentication with Slack Single Sign-On (SSO) login into your WordPress Site.

  • User Attribute Mapping is mandatory for enabling users to successfully login into WordPress. We will be setting up user profile attributes for WordPress using below settings.

Finding user attributes:

  • Go to Configure OAuth tab. Scroll down and click on Test Configuration.
Configure Slack SSO (Single Sign-On) - Test Configuration

  • You will see all the values returned by your OAuth Provider to WordPress in a table. If you don't see value for First Name, Last Name, Email or Username, make the required settings in your OAuth Provider to return this information.
Configure Slack SSO (Single Sign-On) - Test Configuration Result

  • Once you see all the values in Test Configuration, go to Attribute / Role Mapping tab, you will get the list of attributes in the dropdowns.
Configure Slack SSO (Single Sign-On) - Attribute / Role Mapping


  • The settings in the Single Sign-On (SSO) Settings tab define the user experience for Single Sign-On (SSO). To add a Slack login widget on your WordPress page, you need to follow the below steps.
  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Slack SSO (Single Sign-On) - WordPress Login Widget

  • Go to WordPress Left Panel > Appearances > Widgets.
  • Select miniOrange OAuth. Drag and drop to your favourite location and save.
Configure Slack SSO (Single Sign-On) - Select miniOrange OAuth Widget

  • Open your WordPress page and you can see the Slack SSO login button there. You can test the Slack Single Sign-On (SSO) now.
  • Make sure the "Show on login page" option is enabled for your application. (Refer to the below image)
Configure Slack SSO (Single Sign-On) - Login Option

  • Now, go to your WordPress Login page. (Eg. https://< your-wordpress-domain >/wp-login.php)
  • You will see an Slack SSO login button there. Once you click the login button, you will be able to test the Slack Single Sign-On (SSO).
Configure Slack SSO (Single Sign-On) - Login Button


In this Guide, you have successfully configured Slack Single Sign-On (SSO) by configuring Slack as OAuth Provider and WordPress as OAuth Client using our OAuth Single Sign-On (OAuth / OpenID Connect Client) plugin for WordPress. This solution ensures that you are ready to roll out secure access to your WordPress site using Slack login credentials within minutes.



 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