前言介紹
- 這款 WordPress 外掛「Simple Discord SSO ( Single Sign-On )」是 2022-01-19 上架。
- 目前有 20 個安裝啟用數。
- 上一次更新是 2022-01-20,距離現在已有 1200 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 5.0 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
jaycodez |
外掛標籤
discord | social login | Discord Login | discord server |
內容簡介
此外掛允許 Discord 使用者(驗證或非驗證)登入您的 WordPress 網站作為訂閱者。開發者能聽取並自訂登入過程中的各種事件,提供可自訂的登入按鈕,或自行編碼解除鏈接該按鈕。此外掛使用自訂網址重寫規則以處理登入按鈕,您要確保 WordPress 安裝內的「/discord-login」路徑未被快取。當使用者登入時,如果使用者沒有帳戶,系統會使用使用者名稱和區別號自動創建帳戶。預設範圍為「辨認電子郵件」,它允許您的網站將使用者的 Discord 資訊保存到您的資料庫中以進行其他 Discord 相關用途,使用者的資料將存儲在「simple_discord_sso」使用者元鍵中。包括以下欄位:
* id:使用者的 ID
* avatar:使用者的頭像雜湊編號
* discriminator:使用者的 4 位數的 Discord 標籤
* public_flags:使用者帳戶上的公共旗幟
* flags:使用者帳戶上的標誌
* banner:使用者的橫幅雜湊編號
* accent_color:使用者的橫幅色彩(十六進制編碼的整數表示)
* locale:使用者選擇的語言選項
* mfa_enabled:使用者的雙重認證功能是否已啟用
* premium_type:使用者帳戶上的 Nitro 訂閱類型
* verified:此帳戶上的電子郵件是否已經驗證
* hash:MD5 雜湊值,用於確定是否在每次登入時更新這些欄位。
如果您想擴展這些欄位,可使用可用的各種行動和篩選器,查看「Discord 用戶資源」以瞭解更多欄位。這裡提供了各種行動和篩選器可供使用,例如修改登入後的重新導向 URL、更改 Discord 要求的範圍,或根據使用者在 Discord 上的資訊來停止登入(或許之後重新導向)。您甚至可以聆聽登入事件,並在重新導向之前進行處理。各種行動和篩選器的目標是讓開發者自訂此外掛。如果您需要更多功能,可於 GitHub 存儲庫上開啟問題,此外掛正在積極維護,作者會樂於協助。
原文外掛簡介
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
* discriminator: the user’s 4-digit discord-tag
* public_flags: the public flags on a user’s account
* flags: the flags on a user’s account
* banner: the user’s banner hash
* 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 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 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 – the plugin is actively maintained so I’d be happy to help out.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Simple Discord SSO ( Single Sign-On )」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Live Members Counter For Discord 》Live Members Counter For Discord 是一款獨一無二的 WordPress 外掛程式,可以幫助您嵌入所有 Discord 伺服器的會員計數,並提供互動式儀表板來編輯您的會員...。