Linux 软件免费装
Banner图

EgyDevInfo Sign In with Google

开发者 egydevinfo
更新时间 2026年10月7日 05:24
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

login woocommerce social login oauth google login

下载

1.1.2

详情介绍:

Most "Sign in with Google" setups fail in the Google Cloud console, not in WordPress: a redirect URI pasted slightly wrong, an app left in "Testing" mode so real visitors are blocked, or a site moved to a new domain and login silently breaking. This plugin is built around fixing that. A setup page that walks you through Google Cloud A button that keeps working on real sites Careful account handling

安装:

  1. Install and activate the plugin. You are taken straight to the setup wizard.
  2. Follow the wizard (about five minutes). Your site must use HTTPS — Google requires it.
  3. Afterwards, find the wizard again any time from Settings → Sign In with Google → Change credentials.
For agencies: you can define the credentials in wp-config.php instead of the database: define( 'EGYDEVINFO_SIWG_CLIENT_ID', '...' ); define( 'EGYDEVINFO_SIWG_CLIENT_SECRET', '...' );

常见问题:

Google says "Error 400: redirect_uri_mismatch"

The redirect URI in your Google OAuth client does not match your site. Reopen the setup wizard (Settings → Sign In with Google → Change credentials → Back to the OAuth client step), copy the redirect URI again, and paste it into "Authorized redirect URIs" exactly. It can take a few minutes for Google to apply the change.

Visitors see "Access blocked" but it works for me

Your Google app is still in "Testing" mode, where only listed test users can sign in. Open Google Auth Platform → Audience and click "Publish app".

Does it work with page caching (LiteSpeed Cache, WP Rocket, etc.)?

The button is a plain link with no nonce and no JavaScript, so cached pages keep working. The sign-in endpoints themselves send no-cache headers. Please still test once on your live site after setup.

Does it work with the WooCommerce Checkout block?

Yes. The button is added above the Checkout block for guests, and above the classic checkout form on shortcode-based checkouts.

A customer already has an account with the same email. What happens?

If the address is a verified Gmail or Google Workspace address, the accounts are linked automatically and the customer is signed in. Otherwise, for safety, they are asked to log in with their password once and connect Google from their account page.

Can I use it for staff only / my company domain only?

Yes. Set "Allowed email domains" to your Google Workspace domain, and set "New accounts" to "Never" if staff accounts are created manually.

Does it support Facebook or X?

Not at the moment. This plugin focuses on Google only.

更新日志:

1.1.2 1.1.1 1.1.0 1.0.0