Title: Google でログイン
Author: rtCamp
Published: <strong>2020年10月1日</strong>
Last modified: 2026年11月6日

---

プラグインを検索

![](https://ps.w.org/login-with-google/assets/banner-772x250.png?rev=3250317)

![](https://ps.w.org/login-with-google/assets/icon-256x256.png?rev=3250317)

# Google でログイン

 作者: [rtCamp](https://profiles.wordpress.org/rtcamp/)

[ダウンロード](https://downloads.wordpress.org/plugin/login-with-google.1.4.5.zip)

 * [詳細](https://ja.wordpress.org/plugins/login-with-google/#description)
 * [レビュー](https://ja.wordpress.org/plugins/login-with-google/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/login-with-google/#installation)
 * [開発](https://ja.wordpress.org/plugins/login-with-google/#developers)

 [サポート](https://wordpress.org/support/plugin/login-with-google/)

## 説明

Ultra minimal plugin to let your users login to WordPress applications using their
Google accounts. No more remembering hefty passwords!

### 初期設定

 1. Create a project from [Google Developers Console](https://console.developers.google.com/apis/dashboard)
    if none exists.
 2. Go to **Credentials** tab, then create credential for OAuth client.
 3.  * Application type will be **Web Application**
     * Add `YOUR_DOMAIN/wp-login.php` in **Authorized redirect URIs**
 4. This will give you **Client ID** and **Secret key**.
 5. Input these values either in `WP Admin > Settings > WP Google Login`, or in `wp-
    config.php` using the following code snippet:
 6. `define( 'WP_GOOGLE_LOGIN_CLIENT_ID', 'YOUR_GOOGLE_CLIENT_ID' );
     define( 'WP_GOOGLE_LOGIN_SECRET','
    YOUR_SECRET_KEY' );

### ブラウザサポート

[以下のブラウザがサポートされています](https://developers.google.com/identity/gsi/web/guides/supported-browsers)。
例えば、ワンタップログインはSafariではサポートされていませんのでご注意ください。

### 自動ユーザー登録を有効にする方法

You can enable user registration either by
 – Enabling _Settings > WP Google Login
> Enable Google Login Registration_

OR

 * Adding
    `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:** By default, whitelisted domain restrictions apply to both registration
and login for existing accounts. To allow existing users to log in with Google regardless
of domain allowlist, use the `rtcamp.google_enforce_whitelisted_domains_on_login`
filter and return `false`.

### Hooks

すべてのフックのリストについては、[このドキュメント](https://github.com/rtCamp/login-with-google#hooks)
を参照してください。

#### wp-config.php parameters list

 * `WP_GOOGLE_LOGIN_CLIENT_ID` (string): Google client ID of your application.
 * `WP_GOOGLE_LOGIN_SECRET` (string): Secret key of your application
 * `WP_GOOGLE_LOGIN_USER_REGISTRATION` (boolean) (optional): Set `true` If you want
   to enable new user registration. By default, user registration defers to `Settings
   > General Settings > Membership` if constant is not set.
 * `WP_GOOGLE_LOGIN_WHITELIST_DOMAINS` (string) (optional): Comma-separated list
   of allowed domains for login and registration. When configured, restricts authentication
   and account creation to matching email domains. By default, it will allow all
   domains. You can whitelist multiple domains.

### BTW, We’re Hiring!

## スクリーンショット

[⌊Login screen with Google option added.⌉⌊Login screen with Google option added.⌉[

Login screen with Google option added.

[⌊Plugin settings screen.⌉⌊Plugin settings screen.⌉[

Plugin settings screen.

[⌊Settings within Google Developer Console.⌉⌊Settings within Google Developer Console
.⌉[

Settings within Google Developer Console.

## ブロック

このプラグインは1個のブロックを提供します。

 *   Log in with Google Login with Google button block.

## インストール

 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.

## FAQ

### Reporting a bug 🐞

Before creating a new issue, do browse through the [existing issues](https://github.com/rtCamp/login-with-google/issues)
for resolution or upcoming fixes.

If you still need to [log an issue](https://github.com/rtCamp/login-with-google/issues/new),
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](https://github.com/rtCamp/login-with-google/issues).

Once you’re ready to send a pull request, please run through the following checklist:

 1. Browse through the [existing issues](https://github.com/rtCamp/login-with-google/issues)
    for anything related to what you want to work on. If you don’t find any related
    issues, open a new one.
 2. このリポジトリをフォークします。
 3. Create a branch from `develop` for each issue you’d like to address and commit 
    your changes.
 4. コードの変更をローカル クローンからフォークにプッシュします。
 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

 * [リポジトリ](https://github.com/rtCamp/login-with-google)からプラグインをクローン
   します。
 * ユニットテストを実行するには、`composer install && composer tests:unit` を実行
   します。

### コードスニペット

プラグインを拡張およびカスタマイズするためのコード スニペットは、[こちら](https://github.com/rtCamp/login-with-google/blob/develop/docs/CODE_SNIPPETS.md)
にあります。

## 評価

![](https://secure.gravatar.com/avatar/4af1edbc8af2cf14762254c2c563926006141c3ab513681fe86b0bfb42a8b830?
s=60&d=retro&r=g)

### 󠀁[simple and easy to setup](https://wordpress.org/support/topic/simple-and-easy-to-setup-7/)󠁿

 [vynnus](https://profiles.wordpress.org/vynnus/) 2026年7月19日

thank you very much!

![](https://secure.gravatar.com/avatar/f3d70574ca2dbcf23bf8fac807307998c68fa307c0421e2914d19db2735fca15?
s=60&d=retro&r=g)

### 󠀁[Does it create a new account if google email already exists](https://wordpress.org/support/topic/does-it-create-a-new-account-if-google-email-already-exists/)󠁿

 [knezmilos](https://profiles.wordpress.org/knezmilos/) 2026年4月27日

If there is a gmail account already on a site and this plugin is enabled, will it
recognize the existing account with the same email address?

![](https://secure.gravatar.com/avatar/3e48554a4635c0561806b34bee31eaa35622f71a173555b530bc1bdcc31d2960?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9787/)󠁿

 [nimonogi](https://profiles.wordpress.org/nimonogi/) 2026年1月16日

Works as advertised, SImple and easy to use.

![](https://secure.gravatar.com/avatar/d72add6b21889fb6373922dd04eefb8c29f36800115e7298d18cc103a88d46d8?
s=60&d=retro&r=g)

### 󠀁[Minimal and Best](https://wordpress.org/support/topic/minimal-and-best-2/)󠁿

 [Menn](https://profiles.wordpress.org/mennstudio/) 2024年10月21日

For multiple social login accounts, I prefer Nextend Social Login and Register. 
But for internal web or website that has only admin team, no users, I think this
plugin is the best.

![](https://secure.gravatar.com/avatar/515b062daacee82ada2b267dad0f53162e7a3cd44576d88ed382fff3261e58b3?
s=60&d=retro&r=g)

### 󠀁[Does not work in multisite](https://wordpress.org/support/topic/does-not-work-in-multisite-7/)󠁿

 [marcelowins](https://profiles.wordpress.org/marcelowins/) 2024年7月5日

works fine for one site but not for multisite, need to add a notice about it

![](https://secure.gravatar.com/avatar/7b3bd83d9e1e29a7a296c984cd922f8202c3107783ed11261b663e59fbb033a1?
s=60&d=retro&r=g)

### 󠀁[Fantastic, has bug](https://wordpress.org/support/topic/fantastic-has-bug/)󠁿

 [rothschild86](https://profiles.wordpress.org/rothschild86/) 2024年5月12日 2 replies

As of writing, will register a new user regardless of this setting, which prevents
me from using it at the moment:Enable Google Login Registration

 [ 17件のレビューをすべて表示 ](https://wordpress.org/support/plugin/login-with-google/reviews/)

## 貢献者と開発者

Google でログイン はオープンソースソフトウェアです。以下の人々がこのプラグインに
貢献しています。

貢献者

 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Shalin Shah ](https://profiles.wordpress.org/sh4lin/)
 *   [ Nikhil Joshua ](https://profiles.wordpress.org/nikhiljoshua/)
 *   [ Chirag Mathur ](https://profiles.wordpress.org/mchirag2002/)
 *   [ Sagar Tamang ](https://profiles.wordpress.org/mi5t4n/)

“Google でログイン” は8ロケールに翻訳されています。 [翻訳者](https://translate.wordpress.org/projects/wp-plugins/login-with-google/contributors)
のみなさん、翻訳へのご協力ありがとうございます。

[“Google でログイン” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/login-with-google)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/login-with-google/)する
か、[SVN リポジトリ](https://plugins.svn.wordpress.org/login-with-google/)をチェック
するか、[開発ログ](https://plugins.trac.wordpress.org/log/login-with-google/)を 
[RSS](https://plugins.trac.wordpress.org/log/login-with-google/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 1.4.5

Security: Enforce whitelisted domains on login for existing users by default, with`
rtcamp.google_enforce_whitelisted_domains_on_login` filter for backward compatibility.

Security: Bind Google OAuth sub to WordPress account on first verified login (TOFU).
Security: Use per-browser anti-CSRF state token with __Host- cookie boundary. Security:
Trigger standard WordPress authentication filters during One Tap login. Security:
Mask client secret in settings UI and add explicit option to clear stored secret.

#### 1.4.4

Update: Updated Composer and NPM dependencies.

#### 1.4.3

Security: Reject Google identities without a verified email address.
 Update: Updated
Composer and NPM dependencies.

#### 1.4.2

Fix: Migrated rtcamp.google_redirect_url from action to filter.
 Chore: Documentation
update.

#### 1.4.1

Fix: Resolved the issue of redirect_to parameters not working with the shortcode.

Update: Migrated block implementation to modern block implementations. Update: Updated
Composer and NPM dependencies. Fix: Fixed the issue of One-tap script not being 
enqueued if the user was logged out. Chore: Documentation update.

#### 1.4.0

Update: Migrated One Tap Login to use FedCM.
 Update: After a successful login or
logout, users are now redirected to the page they originally intended to access.
Update: When the plugin performs a redirect, it now includes an x-redirect-by header.
Update: A settings page link has been added directly under the plugin name on the
Plugins screen. Fix: Resolved an issue with generating unique usernames. Fix: Fixed
a bug where JavaScript string translations were not being applied correctly. Chore:
Documentation update.

#### 1.3.7

 * WordPress 6.7.2 に対応

#### 1.3.6

 * 修正: PHPCS のエラーと警告

#### 1.3.5

 * 修正: FILTER_SANITIZE_STRING 非推奨警告

#### 1.3.4

 * 雑用: ドキュメントの更新

#### 1.3.3

 * Fix: Redirection back to login page issue.

#### 1.3.2

 * PHP 8.1に対応
 * WordPress最新バージョン6.3.1に対応

#### 1.3.1

 * メンテナンス リリース: 最小要件が更新されました。

#### 1.3.0

 * 機能追加: ログイン ボタン用の Gutenberg ブロック
 * Feature: Save user first name and last name on registration.
 * 追加: PHP 8.0 に対応
 * 追加: ユーザー認証後のフックを追加
 * 追加: ユーザーログイン後のフックを追加
 * Fix: set login cookie with shortcode display.
 * Fix: Redirection back to login page issue.
 * Updated npm packages and laravel-mix.

#### 1.2.2

 * Maintenance release. Requires PHP >= 7.4.

#### 1.2.1

 * Feature: Provide filter for client arguments: rtcamp.google_client_args

#### 1.2

 * Feature: One-Tap Login setting for supported browsers.

#### 1.1

 * Feature: Add shortcode `[google_login]` with optional attributes: `[google_login
   button_text="Login with Google" force_display="no" redirect_to="https://example.
   url/page"]`.
 * Feature: Replace third-party oAuth client with custom GoogleClient class.
 * Fix: Identification of state value, whether a given oAuth login is relevant to
   this plugin.
 * Remove: Google oAuth library from composer.

#### 1.0.14

 * Revert Login with GitHub state fix.

#### 1.0.13

 * Fix login issue related to oAuth state.

#### 1.0.12

 * Fix conflict with Login with GitHub plugin.

#### 1.0.11

 * Add ‘login_with_google/client_arguments’ filter for Google_Client arguments.

#### 1.0.10

 * Fix issue where JS/CSS were not loading.

#### 1.0.9

 * Initial release.

#### 1.3.1

 * メンテナンス リリース: 最小要件が更新されました。

## メタ

 *  バージョン **1.4.5**
 *  最終更新日 **3日前**
 *  有効インストール数 **6,000+**
 *  WordPress バージョン ** 5.5またはそれ以降 **
 *  検証済み最新バージョン: **7.0.8**
 *  PHP バージョン ** 7.4またはそれ以降 **
 *  言語
 * [Chinese (China)](https://cn.wordpress.org/plugins/login-with-google/)、[Chinese (Taiwan)](https://tw.wordpress.org/plugins/login-with-google/)、
   [English (US)](https://wordpress.org/plugins/login-with-google/)、[Georgian](https://ka.wordpress.org/plugins/login-with-google/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/login-with-google/)、[Spanish (Colombia)](https://es-co.wordpress.org/plugins/login-with-google/)、
   [Spanish (Spain)](https://es.wordpress.org/plugins/login-with-google/)、[Swedish](https://sv.wordpress.org/plugins/login-with-google/)、
   [Ukrainian](https://uk.wordpress.org/plugins/login-with-google/).
 *  [プラグインを翻訳](https://translate.wordpress.org/projects/wp-plugins/login-with-google)
 * タグ
 * [authentication](https://ja.wordpress.org/plugins/tags/authentication/)[Google Login](https://ja.wordpress.org/plugins/tags/google-login/)
   [oauth](https://ja.wordpress.org/plugins/tags/oauth/)[sign in](https://ja.wordpress.org/plugins/tags/sign-in/)
   [sso](https://ja.wordpress.org/plugins/tags/sso/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/login-with-google/advanced/)

## 評価

 5つ星中4.6つ星

 *  [  14 5-星レビュー     ](https://wordpress.org/support/plugin/login-with-google/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/login-with-google/reviews/?filter=4)
 *  [  1 3-星レビュー     ](https://wordpress.org/support/plugin/login-with-google/reviews/?filter=3)
 *  [  0 2-星レビュー     ](https://wordpress.org/support/plugin/login-with-google/reviews/?filter=2)
 *  [  1 1-星レビュー     ](https://wordpress.org/support/plugin/login-with-google/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/login-with-google/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/login-with-google/reviews/)

## 貢献者

 *   [ rtCamp ](https://profiles.wordpress.org/rtcamp/)
 *   [ Shalin Shah ](https://profiles.wordpress.org/sh4lin/)
 *   [ Nikhil Joshua ](https://profiles.wordpress.org/nikhiljoshua/)
 *   [ Chirag Mathur ](https://profiles.wordpress.org/mchirag2002/)
 *   [ Sagar Tamang ](https://profiles.wordpress.org/mi5t4n/)

## サポート

過去2ヶ月以内に解決した問題:

     0 / 1

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/login-with-google/)

## 寄付

このプラグインが今後も改善できるよう応援しませんか ?

 [ このプラグインに寄付 ](https://rtcamp.com/)