跳至主要內容
  • 登入
  • 註冊
WordPress.org

Taiwan 正體中文

  • 佈景主題目錄
  • 外掛目錄
  • 最新消息
  • 技術支援
  • 關於我們
  • 團隊
  • 取得 WordPress
取得 WordPress

外掛目錄

  • 我的最愛
  • Beta 版測試
  • 開發者資訊
下載

Sign In With Google

由 Tanner Record 開發
  • 詳細資料
  • 使用者評論
  • 安裝方式
  • 開發資訊
技術支援

外掛說明

This plugin gives your users the ability to sign in with their G Suite account. If they don’t have a user account on your site and they try to sign in, an account will be created for them (if their email address domain is listed in the restricted domains).
This is great for Agencies or sites that have lots of users and need a way to make signing in a quick and painless process.

Features

  • Show/Hide the “Log In with Google” button on the login form
  • Restrict user logins to a specific domain
  • If a user is already logged in to Google, they will be automatically redirected without much fuss
  • Connect existing user accounts with a Google account
  • A custom login parameter can be added to the URL of the site as a “hidden” login. For example adding ?mysitename_login to your url (for example: https://mysitename.com/?mysitename_login) will log in the user, or redirect them to log in with Google.

WARNING

If you leave the “Log in with Google” button shown on the login form, make sure that you are comfortable with the new user role that is set. Since this plugin creates user accounts for those that do not already have an account on the site, use domain restriction or set a low level role to the users.

Development

Active plugin development is handled on Github. Bugs and issues will be tracked and handled there.

螢幕擷圖

  • The login form with the "Log in with Google" button added.
  • This is the second screen shot

安裝方式

  1. Download and extract plugin
  2. Upload sign-in-with-google folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

常見問題集

Where can I get a Client ID and Client Secret?

Due to the nature of Google’s OAuth 2.0 security protocols, you will need to register an application with them to access the required APIs. (Don’t worry if you do not understand, the process is fairly straight forward)

You will need to sign in to the Google Developer Console

  1. Go to the API Console.
  2. From the projects list, select a project or create a new one.
  3. If the APIs & services page isn’t already open, open the console left side menu and select APIs & services.
  4. On the left, click Credentials.
  5. Click New Credentials, then select OAuth client ID.
  6. Add the following in the “Authorized redirect URIs” section: https://YOURDOMAIN.TLD/?google_response
  7. Click save and you may now use “Sign in with Google”.

使用者評論

Awesome

iranabst2 2020 年 9 月 28 日 1 則留言
It's Simple and Awesome. Is it possible to make it pop-up?

Works perfectly

Sudar Muthu 2020 年 6 月 13 日 1 則留言
Clean, easy, simple and works (even in multisite). Awesome plugin.

excellent

5lions 2020 年 6 月 5 日 1 則留言
Much needed plugin!

Perfect

liam 2020 年 5 月 3 日 1 則留言
Exactly as simple and effective as you need it to be. The perfect plugin.

Clean and lightweight

ttodua 2020 年 3 月 29 日 1 則留言
Seems lightweight plugin (& more secure too), without bunch of dependencies. thanks!

Hands-down the Best Google SSO Plugin

Arjav Shah 2020 年 2 月 7 日 1 則留言
Loved how simple and effective this plugin is. I was able to get everything up and running under 5 minutes. Great job on the plugin. Thank you so much!
閱讀全部 6 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Sign In With Google〉的開發相關工作。

參與者
  • Tanner Record
  • Chris Kindred

〈Sign In With Google〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Sign In With Google〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄。

變更記錄

1.8.0

  • fixed an incorrect use of the ‘login_redirect’ core filter.
  • Added siwg_password_length filter to allow adjusting the new user generated password length.
  • Added a global function to get the authentication url in template files.

1.7.0

  • Add setting that allows users, who have an approved domain, to bypass the “Anyone can register” checkbox on the General Settings page.
  • Update to use login_redirect filter after user authenticates.
  • Update changelog to reflect new ownership.

1.6.0

  • Fixed overflow issue with import/export meta boxes.
  • Fixed issue with users being registered when user registration was disabled in site settings.
  • Added template functions so the log in button can be used in themes and plugins (and custom login forms).

1.5.2

  • Added more useful error messages when users aren’t logged in properly.
  • New user accounts now use email address as user_login to prevent unique username issues.
  • Fixed bug with domain restriction not evaluating correctly.
  • Fixed bug where user was redirected if only signed into a single google account with a domain not in the restricted domains list.
  • Added Internationalization (I18n).

1.5.1

  • Fixed an issue where leaving the “Restrict To Domain” field blank would cause issues logging some issues in.
  • Fixed improper implementation of apply_filters
  • Replaced deprecated get_usermeta function with get_user_meta

1.5.0

  • Fixed failures with plugins that rely on the ‘wp_login’ action

1.4.0

  • Updated verbiage of button to “Log In With Google”.
  • Added ability to link/unlink Google account in user profile.

1.3.0

  • Added WP-CLI functionality

1.2.2

  • Fixed bug where user was not redirected properly.

1.2.1

  • Removed Google+ API Dependency
  • Removed call to css and js files that don’t exist.
  • Added settings import and export
  • Updated class and file naming
  • Fixed bug where the user was not redirected properly after login.

1.0.3

  • Fixed bug causing “Settings” link not to show on plugins page
  • Cleaned up error logs

1.0.2

  • Renamed plugin file to match directory

1.0.1

  • Fixed bug causing a redirect loop if using the button on the login page

1.0

  • Initial Release

中繼資料

  • 最新版本: 1.8.0
  • 最後更新: 12 個月前
  • 啟用安裝數: 2,000+
  • WordPress 版本需求: 4.8.1 或更新版本
  • 已測試相容的 WordPress 版本: 5.9.5
  • PHP 版本需求: 5.6 或更新版本
  • 語言:

    English (US)、Spanish (Mexico)、及 Swedish.

    將這個外掛本地化為你的母語版本

  • 標籤:
    googleregisterregistrationsign inusers
  • 進階檢視

評分

檢視全部
  • 5 星 6
  • 4 星 0
  • 3 星 0
  • 2 星 0
  • 1 星 0
登入以提交評論

參與者

  • Tanner Record
  • Chris Kindred

技術支援

最近 2 個月解決的問題:

總計 1 個問題,已解決 0 個

查看技術支援論壇

  • 關於我們
  • 最新消息
  • 主機託管
  • 贊助基金會
  • Swag
  • 線上說明
  • 開發者資源
  • 共同參與
  • Learn
  • 展示網站
  • 外掛目錄
  • 佈景主題目錄
  • 區塊版面配置目錄
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • 隱私權
  • Public Code
WordPress.org
WordPress.org

Taiwan 正體中文

  • 造訪我們的 Facebook 粉絲專頁
  • 造訪我們的 Twitter 帳號
  • Visit our Instagram account
  • Visit our LinkedIn account
程式碼,如詩