
內容簡介
總結:這個外掛讓使用者可以使用他們的 G Suite 帳戶來登入。如果他們在您的網站上還沒有帳戶,但想要登入,系統將會為他們建立一個帳戶(前提是他們的電子郵件地址的域名在受限制的域名列表中)。
1. 外掛提供的功能有哪些?
- 在登入表單上展示或隱藏「使用 Google 登入」按鈕
- 限制使用者登入到特定的域名
- 如果使用者已經登入 Google,將會自動重新導向
- 將現有使用者帳戶與 Google 帳戶連結
- 可在網站的 URL 中新增自訂登入參數作為「隱藏」登入
2. 如果在登入表單上顯示「使用 Google 登入」按鈕,有哪些警告?
- 請檢查新使用者角色的設定,確保您對其感到滿意
- 由於此外掛會為那些在網站上還沒有帳戶的使用者創建帳戶,建議使用域名限制或給予使用者低級別角色
3. 外掛的開發情況如何?
- 積極的外掛開發在 Github 上進行,bug 和問題將在那裡追踪和處理
4. 外掛依賴哪些外部服務?
- 此外掛依賴外部服務,即 Google 登入服務。您可以查看服務描述和使用條款,若要更改連接的服務,請前往 https://myaccount.google.com/connections。
外掛標籤
開發者團隊
② 後台搜尋「Sign In With Socials (Google, Apple, Microsoft)」→ 直接安裝(推薦)
原文外掛簡介
Allow users to login with Google/Microsoft/Apple accounts. Lightweight, no bloatware packages included.
Useful for sites that need a quick way for their users to sign-in.
Available Options
See all available options and their description on plugin’s settings page. Here are some of them:
* Show/Hide the “Sign In with” button on the login form
* If a user is not already registered, during sign-in an account can be created for that email address (aliases are not allowed by default)
* If a user is already logged in to target social provider, they will be automatically redirected without much fuss
* Restrict users to be coming from only specific domain(s)
* Connect existing user accounts.
* WP-CLI available! See /src/includes/class-wp-cli.php header for supported list.
* One redirect-back link https://YOURDOMAIN.TLD/_AUTH_RESPONSE_SIWE_ for all providers.
Programmatic access
Public functions:
* siwe_authenticate_user($code, $state, $error = null)
* siwe_get_auth_url()
* siwe_get_buttons()
Hooks:
* dozens of hooks, look into any source file to find out specific part
