Skip to content
  • About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Lebet Log
  • Daptar
WordPress.org
WordPress.org

Sunda

  • Themes
  • Plugins
  • News
  • About
  • Get WordPress
Get WordPress

Plugins

  • My Favorites
  • Beta Testing
  • Developers
Download

SSO OAuth for Discord by path digital

By path digital
  • Details
  • Reviews
  • Installation
  • Support
  • Development

Description

SSO OAuth for Discord by path digital allows you to hide your website content with Discord SSO and make it only available for your server members.

Screenshots

  • OAuth2 settings
  • Bot settings
  • General settings
  • Custom login page settings
  • Embed on any page
  • Custom login page
  • Login button on a page
  • Channel embeds via webhook

Installation

From your WordPress dashboard

  1. Visit Plugins -> Add New
  2. Search for SSO OAuth for Discord and Install the plugin by path digital
  3. Activate the plugin from your Plugins page

From WordPress.org

  1. Download SSO OAuth for Discord by path digital
  2. Unzip and upload the folder directory to your /wp-content/plugins/ directory
  3. Activate the plugin from your Plugins page

Once Activated

  1. Go to Discord OAuth -> OAuth2 Settings, and select the login page you want to show the login button
  2. Create your Discord Application from Applications with the Redirect URL you copied from Configure page
  3. Enter Discord Application data in to the Configuration page and save settings
  4. Visit your website now, if you are not logged in, the website will ask you to login

FAQ

How can I setup a Discord application?

Visit https://discord.com/developers/applications/ and add a New Application.

From where I can get the Client ID and Client Secret?

Go to your applications and click on the newly created application. Click the OAuth2 tab in the navigation panel, where you can copy both the Client ID and Client Secret.

From where I can get the Token for the Bot?

Click on the newly created application for OAuth2 from applications. Click the Bot tab in the navigation panel and Add Bot to get the Token.

How to get the server ID from Discord

Login to your Discord account, Go to User Settings by clicking on the gear icon next to your username. Go to Advanced Settings in App Settings section and turn ON the Developer Mode. Close the settings page and go to your Discord Dashboard, right click on any server name and Copy ID.

Reviews

Nice attempt/temp solution

drewbllc Pébruari 11, 2022
This plugin really only does one thing and this is let users gain access to the site. It doesn't allow it to work as a login for wp for itself, so users have to loggin 2x which is pointless, unless I want to lock the ENTIRE site down, which is the next thing.. You can't select what pages you want locked down. You cant specify multiple roles. You can't use it to manage users based on certain parameters (add them to server if not in it, etc) Lastly imo is the design. Very ugly to have just a huge block of space on a webpage with a login button added. Would make much better functionality if a paywall (not paid, just the style of page) type thing came up, blurred out the content/added no scroll/no click, and then add the button, that would be much better. Appreciate what he has done of course but I do feel it's as basic as it can be right now with much room for improvement, and the author has already said he IS NOT doing customization.

Very good Plugin, easy to setup!

leonlefty Oktober 4, 2021
This plugin is very helpful to protect your site against unwanted visitors. The Plugin is easy to setup and easy to unterstand.

Helped me block my site from unauthorized users

idearuins Agustus 28, 2021
This is something I have been waiting for a long time! I was able to block users who are not on my Discord server.

Great Plugin – working smoothly

dolarcher Agustus 26, 2021
The Plugin is working perfect. Highly recommended!
Read all 4 reviews

Contributors & Developers

“SSO OAuth for Discord by path digital” is open source software. The following people have contributed to this plugin.

Contributors
  • path digital

Translate “SSO OAuth for Discord by path digital” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

2.4.0

  • Added option to whitelist user roles independant from minimum role.
  • Minor code enhancements

2.3.1

  • Bug fixes

2.3.0

  • Added option to clear all the active login sessions
  • Updated Discord embeds to post whitelisted logins

2.2.0

  • Added option to set login errors
  • Added option to post failed login attempts embeds on a Discord channel via a Webhook
  • Added option to set the redirect page after a successful login

2.1.1

  • Bug fixes

2.1.0

  • Updated option to hide menus from unauthenticated users
  • Updated option to hide widgets from unauthenticated users

2.0.0

  • Added option to block users by Discord ID
  • Added option to allow user to view specific pages and posts
  • Added option to add a custom login page
  • Added option to post successful login embeds on a Discord channel via a Webhook
  • Disabled admin ajax for non-logged users
  • Minor code enhancements

1.5.1

  • Bug fixes

1.5.0

  • Added option to blacklist servers

1.4.2

  • Bug fixes

1.4.1

  • Bug fixes

1.4.0

  • Added option to set the session duration
  • Moved the login error message to the login page
  • Security enhancements

1.3.1

  • Bug fixes

1.3.0

  • Added custom login button styles support
  • Added option to show/hide menus in login page
  • Added option to show/hide widgets in login page
  • Added functionality to auto create and assign the login page

1.2.1

  • Added server name next to the Server ID in Bot Settings page
  • Added settings link to plugin action links
  • Minor visual improvements to admin pages

1.2.0

  • Added user role validation support
  • Added the ability to enable / disable server validation even if the server list is not empty

1.1.0

  • Bug fixes
  • Skiped server validation for 5 minutes to limit Discord API calls

1.0.2

  • Bug fixes and patches

1.0.1

  • Initial Release

Meta

  • Version: 2.4.0
  • Last updated: 3 dinten ago
  • Active installations: 10+
  • WordPress Version: 4.0 or higher
  • Tested up to: 6.0
  • PHP Version: 5.4 or higher
  • Language:
    English (US)
  • Tags:
    discordDiscord Loginloginoauthsso
  • Advanced View

Ratings

See all
  • 5 stars 3
  • 4 stars 0
  • 3 stars 1
  • 2 stars 0
  • 1 star 0
Log in to submit a review.

Contributors

  • path digital

Support

Issues resolved in last two months:

0 out of 1

View support forum

  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org

Sunda

  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry.