Log in with Google

Por rtCamp
(17 avaliações)
Baixar
  • Versão:
    1.4.5
  • Última atualização:
    há 13 dias
  • Instalações ativas:
    mais de 6 mil
  • Versão do WordPress:
    5.5 ou maior
  • Testado até o WordPress:
    7.0.8
  • Versão do PHP:
    7.4 ou maior
  • Tags:

Hospedagem WordPress com plugin Log in with Google

Onde hospedar o plugin Log in with Google?

Este plugin pode ser hospedado em qualquer hospedagem que possua WordPress instalado. Recomendamos escolher uma hospedagem seguro, com servidores otimizados para WordPress, como o serviço de hospedagem da MCO2.

Hospedando o plugin Log in with Google em um provedor de confiança

A MCO2, além de instalar o WordPress na versão mais nova para seus clientes, disponibiliza o WP SafePress, um sistema exclusivo que assegura e aumenta a performance do seu site ao mesmo tempo.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização automática de imagens e fotos, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São plugins que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

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: 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

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): 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!

Capturas de tela

Login screen with Google option added.

Login screen with Google option added.

Plugin settings screen.

Plugin settings screen.

Settings within Google Developer Console.

Settings within Google Developer Console.

Plugins semelhantes

Limit Login Attempts
(201 avaliações)

Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.

InfiniteWP Client
(177 avaliações)

Install this plugin on unlimited sites and manage them all from a central dashboard. This plugin communicates with your InfiniteWP Admin Panel.

Two Factor
(208 avaliações)

Ative a autenticação de dois fatores (2FA) usando senhas de uso único baseadas em tempo (TOTP), e-mail e códigos de verificação de backup.

SAML Single Sign On – SSO Login
(402 avaliações)

SAML SSO (Single Sign On) for WordPress Login with Okta, Entra ID/Azure AD, GSuite, Salesforce & All SAML IdPs. Free Unlimited SSO [24/7 Support]

Gmail
(103 avaliações)

Connect to Gmail server to automatically send email from your WordPress site. Configure wp_mail() to use SMTP with OAuth 2.0 authentication.

OAuth Single Sign On – SSO (OAuth Client)
(327 avaliações)

WordPress OAuth SSO (Single Sign On) with Azure, Okta, Cognito, Keycloak, OAuth & OpenID Providers. Free Unlimited SSO Authentication [24/7 Support]

Do mesmo author (rtCamp)

Nginx Helper
(31 avaliações)

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also does a few more things.

rtMedia for WordPress, BuddyPress and bbPress
(152 avaliações)

Add albums, photo, audio/video upload, privacy, sharing, front-end uploads & more. All this works on mobile/tablets devices.