Linux 软件免费装
Banner图

Log in with Google

开发者 rtCamp
更新时间 2023年9月6日 18:25
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.3.1
版权: GPLv2 or later
版权网址: 版权信息

标签

authentication sso log in sign in oauth single sign-on sign-in Google login

下载

1.1 1.3.2 1.0.10 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.14 1.2.2 1.0.0 1.0.11 1.0.12 1.0.9 1.2.1 1.0.8 1.0 1.0.13 1.2 1.3.0 1.3.1 1.0.1

详情介绍:

Ultra minimal plugin to let your users login to WordPress applications using their Google accounts. No more remembering hefty passwords! Initial Setup
  1. Create a project from Google Developers Console if none exists.
  2. Go to Credentials tab, then create credential for OAuth client.
  3. Application type will be Web Application
  4. Add YOUR_DOMAIN/wp-login.php in Authorized redirect URIs
  5. This will give you Client ID and Secret key.
  6. Input these values either in WP Admin > Settings > WP Google Login, or in wp-config.php using the following code snippet:
define( 'WP_GOOGLE_LOGIN_CLIENT_ID', 'YOUR_GOOGLE_CLIENT_ID' ); define( 'WP_GOOGLE_LOGIN_SECRET', 'YOUR_SECRET_KEY' ); Browser support These browsers are supported. Note, for example, that One Tap Login is not supported in Safari. How to enable automatic user registration You can enable user registration either by define( 'WP_GOOGLE_LOGIN_USER_REGISTRATION', 'true' ); in wp-config.php file. Note: If the checkbox is ON then, it will register valid Google users even when WordPress default setting, under Settings > General Settings > Membership > Anyone can register checkbox is OFF. Restrict user registration to one or more domain(s) By default, when you enable user registration via constant WP_GOOGLE_LOGIN_USER_REGISTRATION or enable Settings > WP Google Login > Enable Google Login Registration, it will create a user for any Google login (including gmail.com users). If you are planning to use this plugin on a private, internal site, then you may like to restrict user registration to users under a single Google Suite organization. This configuration variable does that. Add your domain name, without any schema prefix and www, as the value of WP_GOOGLE_LOGIN_WHITELIST_DOMAINS constant or in the settings Settings > WP Google Login > Whitelisted Domains. You can whitelist multiple domains. Please separate domains with commas. See the below example to know how to do it via constants: define( 'WP_GOOGLE_LOGIN_WHITELIST_DOMAINS', 'example.com,sample.com' ); Note: If a user already exists, they will be allowed to login with Google regardless of whether their domain is whitelisted or not. Whitelisting will only prevent users from registering with email addresses from non-whitelisted domains. Hooks For a list of all hooks please refer to this documentation. wp-config.php parameters list BTW, We're Hiring!

安装:

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Follow "Setup" instructions in ReadMe to configure credentials from Google Developers Console.

屏幕截图:

  • Plugin settings screen.
  • Settings within Google Developer Console.

升级注意事项:

1.3.2
  • Compatible with PHP 8.1 and WordPress 6.3.1

常见问题:

Reporting a bug 🐞

Before creating a new issue, do browse through the existing issues for resolution or upcoming fixes. If you still need to log an issue, making sure to include as much detail as you can, including clear steps to reproduce the issue, if possible.

Creating a pull request

Want to contribute a new feature? Start a conversation by logging an issue. Once you're ready to send a pull request, please run through the following checklist:

  1. Browse through the existing issues for anything related to what you want to work on. If you don't find any related issues, open a new one.
  2. Fork this repository.
  3. Create a branch from develop for each issue you'd like to address and commit your changes.
  4. Push the code changes from your local clone to your fork.
  5. Open a pull request and that's it! We'll respond with feedback as soon as possible (Isn't collaboration a great thing? 😌)
  6. Once your pull request has passed final code review and tests, it will be merged into develop and be in the pipeline for the next release. Props to you! 🎉

Unit testing

  • Clone the plugin from repository.
  • Run composer install && composer tests:unit to run unit tests.

更新日志:

1.3.2 1.3.1 1.3.0 1.2.2 1.2.1 1.2 1.1 1.0.14 1.0.13 1.0.12 1.0.11 1.0.10 1.0.9 1.3.1