Title: Simple Discord SSO ( Single Sign-On )
Author: Jay Wood
Published: <strong>20. јануар 2022.</strong>
Last modified: 20. јануар 2022.

---

Претражи додатке

![](https://ps.w.org/simple-discord-sso/assets/banner-772x250.png?rev=2660460)

Овај додатак **није испробан са последња 3 главна издања Вордпреса**.Можда се више
не одржава или подржава и можда има грешке са усклађеношћу са новијим издањима Вордреса.

![](https://ps.w.org/simple-discord-sso/assets/icon-128x128.png?rev=2660460)

# Simple Discord SSO ( Single Sign-On )

 [Jay Wood](https://profiles.wordpress.org/jaycodez/)

[Преузимање](https://downloads.wordpress.org/plugin/simple-discord-sso.1.0.2.zip)

 * [Детаљи](https://sr.wordpress.org/plugins/simple-discord-sso/#description)
 * [Прегледи](https://sr.wordpress.org/plugins/simple-discord-sso/#reviews)
 *  [Постављање](https://sr.wordpress.org/plugins/simple-discord-sso/#installation)
 * [Изградња](https://sr.wordpress.org/plugins/simple-discord-sso/#developers)

 [Подршка](https://wordpress.org/support/plugin/simple-discord-sso/)

## Опис

This plugin allows discord users ( verified or not ) to login to your WordPress 
website as a subscriber. With a slew of available
 hooks developers are able to 
both listen to, and customize, various events during the login process. Complete
with a customizable login button, or you can code your own and unhook this one.

#### Important Caching Information

This plugin uses a custom rewrite rule for the login button. You may want to ensure
the `/discord-login` path in your WordPress
 installation is not cached.

#### Saved User Data

When logging in, if the user does not have an account one is created for them automatically
using their Username and Discriminator
 field. The default scope is `identify email`
which allows your site to store their discord information to your database for other
discord-related usage.

The following fields are saved to the `simple_discord_sso` user meta key for all
discord users:
 * **id**: the user’s id * **avatar**: the user’s [avatar hash](https://discord.com/developers/docs/reference#image-formatting)***
discriminator**: the user’s 4-digit discord-tag * **public_flags**: the public [flags](https://discord.com/developers/docs/resources/user#user-object-user-flags)
on a user’s account * **flags**: the [flags](https://discord.com/developers/docs/resources/user#user-object-user-flags)
on a user’s account * **banner**: the user’s [banner hash](https://discord.com/developers/docs/reference#image-formatting)***
accent_color**: the user’s banner color encoded as an integer representation of 
hexadecimal color code * **locale**: the user’s chosen language option * **mfa_enabled**:
whether the user has two factor enabled on their account * **premium_type**: the
[type of Nitro subscription](https://discord.com/developers/docs/resources/user#user-object-premium-types)
on a user’s account * **verified**: whether the email on this account has been verified***
hash**: Just an MD5 hash which is used to determine if these fields should be updated
on every login.

Various actions and filters are available, should you want to expand on these fields(
if new fields are added ) just look over
 the [Discord User Resource](https://discord.com/developers/docs/resources/user)
for more fields.

#### Actions/Filters

Various actions and filters are available from changing the redirect URL after login,
changing the scope of the discord request,
 or even halting the login ( and maybe
redirecting after ) depending on the user’s discord information. Or, even if you
want, you can listen for the login and hook into right before the redirect. The 
goal with the slew of actions and filters is to allow developers to customize the
plugin how they see fit.

Think we need more? Awesome, open a ticket on the [GitHub Repository](https://github.com/JayWood/jw-discord-sso)–
the plugin is actively maintained so I’d be happy to help out.

## Снимци екрана

 * [[
 * The login button.
 * [[
 * Logo Colors.
 * [[
 * Button Background Colors.

## Постављање

#### From your WordPress dashboard

 1. Visit `Plugins > Add New`.
 2. Search for `Simple Discord SSO`. Find and Install `Simple Discord SSO`.
 3. Activate the plugin from your Plugins page.

#### From WordPress.org

 1. Download Simple Discord SSO.
 2. Unzip and upload the `simple-discord-sso` directory to your `/wp-content/plugins/`
    directory.
 3. Activate Simple Discord SSO from your Plugins page.

#### Post Installation

You will now need to create an App on discord. To do that follow the below instructions:

1. Sign-in to discord and create an app on the [Dashboard](https://discord.com/developers/applications).
2. Name your app something obvious ( WordPress SignOn for example ) 3. Fill out 
the initial information for legal reasons, it’s suggested ( but not required ) you
have a Terms of Service page and a Privacy Policy if you are using this plugin. 
4. Click OAuth2 on the left sidebar. 5. Click General under OAuth2. 6. You must 
add a redirect back to your site. So click Add Redirect and enter your site’s full
URL to the WordPress install. 7. Copy the Client ID and the Client Secret 8. Now
log into your WordPress installation and navigate to WP Admin > Discord SSO 9. Add
the Client ID and Client Secret to your settings. Click Save/Update. 10. Your site
is now allows Discord users to sign in.

## ЧПП

### How can I change user roles from subscriber when they sign in

There’s a filter for that. It’s `simple_discord_sso/default_role` which defaults
to `subscriber` and also receives the user resource array from the Discord API.

### How can I change the URL they’re redirected to?

There’s a filter for that. It’s `simple_discord_sso/login_redirect` which defaults
to `home_url()` and also receives the `WP_User` object.

### How do I allow users to login without using wp-login.php?

To use the login, you only need to redirect the user to `/discord-login` – this 
is a custom rewrite to fire off the sign-on
 process. Alternatively you can use 
the query parameter instead `/?discord=1`.

## Прегледи

![](https://secure.gravatar.com/avatar/d7644bd33c2c753f81cc8d931b48221ddff61c4467f323f8ebc0327c64af7f1d?
s=60&d=retro&r=g)

### 󠀁[Good plugin unfortunately not usable](https://wordpress.org/support/topic/good-plugin-unfortunately-not-usable/)󠁿

 [scsudo](https://profiles.wordpress.org/scsudo/) 18. јануар 2023.

The plugin works fine. Unfortunately, the login button is not displayed correctly,
but is only a small purple box. Therefore unfortunately not usable. Edit: A small
update: It seems that the button is not displayed incorrectly everywhere after all.
However, the behavior is very different between Chromium-Based, Firefox and Safari.
The problem that only a small purple box exists seems to occur only with Firefox.

 [ Види свих 0 прегледа ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/)

## Сарадници и градитељи

„Simple Discord SSO ( Single Sign-On )“ је софтвер отвореног кода. Следећи људи 
су допринели овом додатку.

Сарадници

 *   [ Jay Wood ](https://profiles.wordpress.org/jaycodez/)

[Преведите „Simple Discord SSO ( Single Sign-On )“ на свој језик.](https://translate.wordpress.org/projects/wp-plugins/simple-discord-sso)

### Заинтересовани сте за градњу?

[Прегледајте код](https://plugins.trac.wordpress.org/browser/simple-discord-sso/),
проверите [SVN складиште](https://plugins.svn.wordpress.org/simple-discord-sso/)
или се пријавите на [белешку градње](https://plugins.trac.wordpress.org/log/simple-discord-sso/)
преко [RSS-а](https://plugins.trac.wordpress.org/log/simple-discord-sso/?limit=100&mode=stop_on_copy&format=rss).

## Белешка о изменама

#### 1.0.2

 * Small versioning update for plugin submission.
 * Automatically update permalinks if required on init.

#### 1.0.1

 * Small updates to readme

#### 1.0.0

 * Initial release.

## Мета

 *  Version **1.0.2**
 *  Last updated **4 године раније**
 *  Active installations **10+**
 *  WordPress version ** 5.0 или новије **
 *  Tested up to **5.8.13**
 *  PHP version ** 7.4 или новије **
 *  Language
 * [English (US)](https://wordpress.org/plugins/simple-discord-sso/)
 * Tags
 * [discord](https://sr.wordpress.org/plugins/tags/discord/)[Discord Login](https://sr.wordpress.org/plugins/tags/discord-login/)
   [discord server](https://sr.wordpress.org/plugins/tags/discord-server/)[social login](https://sr.wordpress.org/plugins/tags/social-login/)
 *  [Напредни преглед](https://sr.wordpress.org/plugins/simple-discord-sso/advanced/)

## Оцене

 3 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/simple-discord-sso/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/simple-discord-sso/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/simple-discord-sso/reviews/)

## Сарадници

 *   [ Jay Wood ](https://profiles.wordpress.org/jaycodez/)

## Подршка

Имате нешто да кажете? Потребна вам је помоћ?

 [Види форум подршке](https://wordpress.org/support/plugin/simple-discord-sso/)