Giter Site home page Giter Site logo

tarecord / sign-in-with-google Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 5.0 4.25 MB

A WordPress plugin that adds "Sign in with Google" functionality

Home Page: https://wordpress.org/plugins/sign-in-with-google

License: GNU General Public License v2.0

PHP 88.73% CSS 3.36% JavaScript 0.52% Shell 7.39%
oauth wordpress wordpress-plugin

sign-in-with-google's Introduction

Hi there 👋

sign-in-with-google's People

Contributors

chrisantaki avatar chrismkindred avatar goaaats avatar johanwinther avatar tarecord avatar ttodua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sign-in-with-google's Issues

Difference between branches

Can you explain the difference between branches? develop branch is set as main, so is master obsolete branch we should ignore?

The Login button not displayed

The domain restricted is not the same as the domain this plugin is installed in.

Plugin Setting Page:
image

Google Developer Console Setting:
image

Thank you for any advise. Appreciate this plugin very much.

Slows down site

The plugin slows down my Wordpress site a bit. Is it possible to only load the plugin when necessary? Perhaps only when the user is logged out and on the relevant pages (login page and google response page).

EDIT: Checked out the code a bit and I wonder if it is the loading of the dependencies on every page load that slows it down.

Show Error For Users With Same Name

When a user tries to sign in with another Google account that shares the same name, there's no error message stating why the user can't be logged in. In the debug.log it states:

[12-Feb-2019 13:42:29 UTC] Sorry, that username already exists!

So we're getting it, but a meaningful error message on the login screen needs to be added or we need to handle it another way.

NOTE: This should be a rare edge case. User has to have two different email addresses (both of which have domains allowed in the admin) with the same first.last naming convention

Redirects to site but doesn't login

I've installed the plugin. Upon selecting and authenticated with my G-Suite credentials, I'm redirected to my site. However, I'm not logged in. I don't see any errors or logs.

Show log in with Google button on custom login form

Hey,

Is there a way to show the log in with Google button in a custom login form?

for example in this:
<form method="post" action="<?php echo wp_login_url(); ?>"> <input type="text" name="log"> <input type="password" name="pwd"> <input type="submit" name="wp-submit" value="Login" ></form>

Thanks in advanced for the help

Fails When Redirecting After User Logs Out

After users log out, they see the login form. From here, they are able to log back in, however, the redirect back fails with just a white screen after they are authenticated with Google.

Steps To Reproduce:

  1. Sign in to the site
  2. Log Out
  3. From the wp-login.php?loggedout=true screen, click the "Sign In With Google" button
  4. See the white screen

Register User

I would suggest to allow user registration only if the option is selected on General settings.

If not, return an error.

image

Multisite support

Please implement functionality required to use the plugin on a multisite network.

When doing a multisite install of the plugin, at the moment, it is required to set up the plugin for each site that is added.
Please add a multisite settings page that allows administrators to override per-site settings.

Thank you!

Is development of this plugin discontinued?

We have tried to contact you through email, also comments under PR, but nowhere get response for a very long time.
Can you please say with one word (yes or no) if the plugin is abandoned or not? we are waiting the PR's to be merged, and if you are no longer interested in the development, we will have to fork it and continue on our own (which I try to refrain from unless you have abandoned this plugin).

Fix PHPCS Warnings: "Use strict comparisons"

FILE: ...h-google/src/sign-in-with-google/admin/class-sign-in-with-google-admin.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------
 228 | WARNING | Found: ==. Use strict comparisons (=== or !==).
 507 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 545 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 559 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 612 | WARNING | Found: !=. Use strict comparisons (=== or !==).
 704 | WARNING | Not using strict comparison for in_array; supply true for
     |         | third argument.
--------------------------------------------------------------------------------

Issue after upgrading 1.7 > 1.8

Hi,

after upgrading to 1.8 I am getting the following error message:

Notice: Undefined variable: user in /www/htdocs/path_to_site/wp-content/plugins/sign-in-with-google/src/admin/class-sign-in-with-google-admin.php on line 572

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/path_to_site/wp-content/plugins/sign-in-with-google/src/admin/class-sign-in-with-google-admin.php:572) in /www/htdocs/path_to_site/wp-includes/pluggable.php on line 1340

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/path_to_site/wp-content/plugins/sign-in-with-google/src/admin/class-sign-in-with-google-admin.php:572) in /www/htdocs/path_to_site/wp-includes/pluggable.php on line 1343

I replaced some private data with "path_to_site".

Wordpress 5.8.4
PHP 7.4

I am logged in spite of the error messages.
Reentering the website admin url opens the backend.

How can I fix the error messages?

Cheers

Woocommerce integration

Thank you for the plugin 🙏 Do you have any plans to extend this plugin to also add google sign in to the WooCommerce login?

Need to ask for consent

Here's the issue i am facing..

  1. I have a personal Google Account.
  2. My Company also has Google apps accounts.
  3. Now on my WP, i have enabled to restrict the logins only from my company domain name.
  4. i am logged in to the only personal gmail from the browser.
  5. Now, when I open the wp site and try to login its failing and alerting me that only domainname.com are allowed. This is expected.

Shouldn't it take me to the google login page and allow me to signin with my CorpAccount?

However, if i login to google first with my both of the accounts and then open the WP sire, its asking me to select the account with which i should login.

make disallow of registration configurable

In #56 a check was added to disallow the registration of new users if the setting anyone can register is not checked in Wordpress.
Would it be possible to make this configurable?
Background: I do not want that anyone can register without google but I do want that users of a speific domain can register with google.

Filter Redirect Slug

It would be great to provide developers with a way to filter the redirect slug (google_response) and a custom base site url. ( re: #89 )

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.