콘텐츠로 바로가기
WordPress.org

한국어

  • 테마
  • 플러그인
  • 소식
  • 지원
    • 문서
    • 포럼
  • About
  • 워드프레스 소개
    • WordPress 6.9
    • 워드프레스 6.8
    • 워드프레스와 40% 웹을 위한 여정
    • 워드프레스 번역 핸드북
  • 워드프레스 한국팀
  • 워드프레스 받기
워드프레스 받기
WordPress.org

Plugin Directory

Log in with Google

  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인
  • 플러그인 제출하기
  • 내 즐겨찾기
  • 로그인

Log in with Google

작성자: rtCamp
다운로드
  • 세부사항
  • 평가
  • 설치
  • 개발
지원

설명

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.

    • Application type will be Web Application
    • Add YOUR_DOMAIN/wp-login.php in Authorized redirect URIs
  3. This will give you Client ID and Secret key.

  4. 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
– 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: 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

  • 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): Domain names, if you want to restrict login with your custom domain. By default, it will allow all domains. You can whitelist multiple domains.

BTW, We’re Hiring!

스크린샷

  • Login screen with Google option added.
  • Plugin settings screen.
  • 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 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.

Code Snippets

Code snippets to extend and customize the plugin can be found here.

후기

Excellent plugin

nimonogi 2026년 1월 16일
Works as advertised, SImple and easy to use.

Minimal and Best

Menn 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.

Does not work in multisite

marcelowins 2024년 7월 5일
works fine for one site but not for multisite, need to add a notice about it

Fantastic, has bug

rothschild86 2024년 5월 12일 답글 2개
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

Very nice plugin

dvamvourellis 2023년 4월 24일
Works as expected but the important part is that is customization friendly (ex. shortcodes) and easy to set up. Thank you

Best plugin for login with Google

fakem1ner 2022년 5월 30일
Half of the plug-ins simply do not work, the other can be configured only when the pigs fly. But this plugin is configured in just a couple of clicks and works stably. And just because it is one of the few workers I am writing this and rate with 5 stars
모든 15 평가 읽기

기여자 & 개발자

“Log in with Google”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자
  • rtCamp
  • Shalin Shah
  • Nikhil Joshua
  • Chirag Mathur
  • Sagar Tamang

“Log in with Google”(이)가 5 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Log in with Google”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

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

  • Compatible with WordPress 6.7.2

1.3.6

  • Fix: PHPCS Errors and Warnings

1.3.5

  • Fix: FILTER_SANITIZE_STRING Deprecation warning

1.3.4

  • Chore: Doc update

1.3.3

  • Fix: Redirection back to login page issue.

1.3.2

  • Compatible with PHP 8.1
  • Compatible with WordPress latest version 6.3.1

1.3.1

  • Maintenance release: Updated minimum requirements.

1.3.0

  • Feature: Gutenberg block for Login button.
  • Feature: Save user first name and last name on registration.
  • Add: PHP 8.0 compatibility.
  • Add: Added hook after user authentication.
  • Add: Added hook after user is logged-in.
  • 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

  • Maintenance release: Updated minimum requirements.

기초

  • 버전 1.4.1
  • 최근 업데이트: 6개월 전
  • 활성화된 설치 6,000+
  • 워드프레스 버전 5.5 또는 그 이상
  • 다음까지 시험됨: 6.7.4
  • PHP 버전 7.4 또는 그 이상
  • 언어

    Chinese (China), Chinese (Taiwan), English (US), Georgian, Swedish, 그리고 Ukrainian.

    자국어로 번역하기

  • 태그:
    authenticationGoogle Loginoauthsign insso
  • 고급 보기

평점

별 5점 만점에 4.5점.
  • 12/5-별점 후기 별 5개 12
  • 1/4-별점 후기 별 4개 1
  • 1/3-별점 후기 별 3개 1
  • 0/2-별점 후기 별 2개 0
  • 1/1-별점 후기 별 1개 1

리뷰 추가하기

모든 리뷰 보기

기여자

  • rtCamp
  • Shalin Shah
  • Nikhil Joshua
  • Chirag Mathur
  • Sagar Tamang

지원

지난 2개월 동안 해결된 문제:

2 중 0

지원 포럼 보기

기부

이 플러그인이 발전하도록 도우시겠습니까?

이 플러그인에 기부하기

  • 소개
  • 뉴스
  • 호스팅
  • 개인정보
  • 쇼케이스
  • 테마
  • 플러그인
  • 패턴
  • 배우기
  • 지원
  • 개발자 도구
  • WordPress.tv ↗
  • 참여하기
  • 이벤트
  • 기부하기 ↗
  • 미래를 위한 5가지
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

한국어

  • X(이전 트위터) 계정 방문하기
  • 블루스카이 계정 방문하기
  • 마스토돈 계정 방문하기
  • 스레드 계정 방문하기
  • 페이스북 페이지 방문하기
  • 인스타그램 계정 방문하기
  • LinkedIn 계정 방문하기
  • 틱톡 계정 방문하기
  • 유튜브 채널 방문하기
  • 텀블러 계정 방문하기
코드는 詩다