Integrate Discord WordPress Single Sign-On (SSO) | Discord Integrator
WordPress Discord Integration using OAuth2:
Setting up WordPress Discord Integration (Discord SSO) using OAuth2.0
is easy with WordPress Discord Integrator plugin. 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 Discord. By the end of
this guide, users should be able to login to WordPress from Discord. To know
more about other features we provide in WP OAuth Single Sign-On ( OAuth &
OpenID Connect Client ) plugin, you can
Pre-requisites : Download And Installation
Log into your WordPress instance as an admin.
Go to the WordPress Dashboard -> Plugins and click on Add New.
Search for a WordPress miniOrange Discord Integration plugin and click on
After clicking on the New Application button it will show you the popup for providing a name to the application. Click on the Create button after providing the application name.
Navigate to the OAuth2 tab from the left section. Click on Add Redirect button and enter the redirect url which you will get from the WordPress Discord Integration plugin. Then click on save changes button.
Now, Copy the Client Id and Client Secret and configure them in the miniOrange Discord Plugin on the corresponding fields.
You have successfully implemented Discord as Social Login Provider for configuring WordPress Discord Plugin.
2. Setup WordPress as OAuth Client
Go to Discord login-> App setting. Enter the Client Credentials like Client ID & Client Secret which you got from step1.
Enter the scope as identify+email. Click on save & Test Configuration button.
You will see all the values returned by discord to WordPress in a table.
You have successfully implemented WordPress as OAuth Client for configuring WordPress Discord Plugin.
3. Setup A discord server and discord bot into Discord integrator
3.1. Steps to get the Bot Token
Go to the developer console of discord and Navigate to the Bot tab from left hand side menu. Click on the
Add Bot button.
Copy the Token and keep it handy as we will require it later while configuring Bot Token in Discord
3.2. Steps to add the created Bot into discord server
Go to URL Generator under OAuth2 section and select the following permissions.
Copy the Generated URL and paste it in a new tab. You will be asked to select a discord server to join.
Select the server and provide Bot permissions to the server.
NOTE : Make sure Bot is added into discord server after that go to roles and
make sure that Bot we just added it should be on top.[If not move it on top by left side dots].
3.3. Steps to get the Guild ID
To get Guild ID for your server you first need to enable Developer Mode in the discord server setting. To
Enable Go To Setting => Advanced => Enable Developer Mode.
Now, Open your Discord server, right-click on the server name, then select Copy ID and keep it handy as we
will require it later while configuring the Guild ID in the Discord Integrator plugin.
3.4. Steps to configure the Bot Token and Guild ID in the Discord Integrator Plugin
Now go to Discord Integrator plugin => Discord Server Configuration. And paste Guild ID and Bot
Token in the Discord Plugin on the corresponding fields.
4. Enable the connect with discord button after the user logged in
Enable this feature to show a "Connect with Discord" button to users after they successfully log in with their WordPress credentials. By clicking the button, the user will be added to your Discord server.
Go to Discord Integrator plugin => Link Social Account tab. Enable the checkbox for Linked users to
loggedin user and copy the shortcode [miniorange_discord_login link_enable="1"] and paste it on any
WordPress page where you want to show connect button.
5. Map Discord roles to WordPress
Member roles in the discord server will be mapped with WordPress role during Single Sign-On (SSO). Whenever a user logs into the WordPress site using Discord Single Sign-On(SSO), WordPress role will be assigned to the user based on user's role on the discord server.
Go to the Discord Integrator plugin => Discord To WordPress Role Mapping tab. Enable the checkbox for Discord To WordPress Role Mapping.
Please select the Discord Role corresponding to the desired WordPress Role for a user and proceed by clicking the Save button. Multiple Discord roles can be assigned to distinct WordPress roles, as shown in the below image.
6. Map WordPress roles to Discord
User roles from your WordPress site will be mapped to member roles in your Discord server. Whenever a user logs into the WordPress site using Discord Single Sign-On(SSO), the user will be assigned the Discord role on the discord server based on user's role on the WordPress website.
Go to the Discord Integrator plugin => WordPress To Discord Role Mapping tab. Enable the checkbox for WordPress To Discord Role Mapping.
Please select the WordPress Role corresponding to the desired Discord Role for a user and proceed by clicking the 'Save' button. Multiple WordPress roles can be assigned to distinct Discord roles, as shown in the below image.
With WordPress Discord Plugin you have configured Discord as Social Login Provider and WordPress as OAuth Client to provide User Restriction and
Role Mapping for the users who are performing Single Sign-On using Discord user profile on your WordPress site.
Discord Integrator will now provide seamless one-click login with Discord social login into your WordPress site.
Mail us on
quick guidance(via email/meeting) on your requirement and our team will help
you to select the best suitable solution/plan as per your requirement.
Need Help? We are right here!
Contact miniOrange Support
Thanks for your inquiry.
If you dont hear from us within 24 hours, please feel free to send a follow up email to email@example.com
This privacy statement applies to miniorange websites describing how we handle the personal
When you visit any website, it may store or retrieve the information on your browser, mostly in the
form of the cookies. This information might be about you, your preferences or your device and is
mostly used to make the site work as you expect it to. The information does not directly identify
you, but it can give you a more personalized web experience.
Click on the category headings to check how we handle the cookies.
Strictly Necessary Cookies
Necessary cookies help make a website fully usable by enabling the basic functions like site
navigation, logging in, filling forms, etc. The cookies used for the functionality do not store any
personal identifiable information. However, some parts of the website will not work properly without
These cookies only collect aggregated information about the traffic of the website including -
visitors, sources, page clicks and views, etc. This allows us to know more about our most and least
popular pages along with users' interaction on the actionable elements and hence letting us improve
the performance of our website as well as our services.