This plugin gives your users the ability to sign in with their G Suite account. If they don’t have a user account on your site and they try to sign in, an account will be created for them (if their email address domain is listed in the restricted domains).
This is great for Agencies or sites that have lots of users and need a way to make signing in a quick and painless process.
- Show/Hide the “Log In with Google” button on the login form
- Restrict user logins to a specific domain
- If a user is already logged in to Google, they will be automatically redirected without much fuss
- Connect existing user accounts with a Google account
- A custom login parameter can be added to the URL of the site as a “hidden” login. For example adding
?mysitename_loginto your url (for example:
https://mysitename.com/?mysitename_login) will log in the user, or redirect them to log in with Google.
If you leave the “Log in with Google” button shown on the login form, make sure that you are comfortable with the new user role that is set. Since this plugin creates user accounts for those that do not already have an account on the site, use domain restriction or set a low level role to the users.
Active plugin development is handled on Github. Bugs and issues will be tracked and handled there.
- Download and extract plugin
sign-in-with-googlefolder to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
Where can I get a Client ID and Client Secret?
Due to the nature of Google’s OAuth 2.0 security protocols, you will need to register an application with them to access the required APIs. (Don’t worry if you do not understand, the process is fairly straight forward)
You will need to sign in to the Google Developer Console
- Go to the API Console.
- From the projects list, select a project or create a new one.
- If the APIs & services page isn’t already open, open the console left side menu and select APIs & services.
- On the left, click Credentials.
- Click New Credentials, then select OAuth client ID.
- Add the following in the “Authorized redirect URIs” section:
- Click save and you may now use “Sign in with Google”.
བྱས་རྗེས་འཇོག་མཁན། & གསར་འབྱེད་པ།
“Sign In With Google” is open source software. The following people have contributed to this plugin.བྱས་རྗེས་འཇོག་མཁན།
- fixed an incorrect use of the ‘login_redirect’ core filter.
- Added siwg_password_length filter to allow adjusting the new user generated password length.
- Added a global function to get the authentication url in template files.
- Add setting that allows users, who have an approved domain, to bypass the “Anyone can register” checkbox on the General Settings page.
- Update to use login_redirect filter after user authenticates.
- Update changelog to reflect new ownership.
- Fixed overflow issue with import/export meta boxes.
- Fixed issue with users being registered when user registration was disabled in site settings.
- Added template functions so the log in button can be used in themes and plugins (and custom login forms).
- Added more useful error messages when users aren’t logged in properly.
- New user accounts now use email address as user_login to prevent unique username issues.
- Fixed bug with domain restriction not evaluating correctly.
- Fixed bug where user was redirected if only signed into a single google account with a domain not in the restricted domains list.
- Added Internationalization (I18n).
- Fixed an issue where leaving the “Restrict To Domain” field blank would cause issues logging some issues in.
- Fixed improper implementation of
- Replaced deprecated
- Fixed failures with plugins that rely on the ‘wp_login’ action
- Updated verbiage of button to “Log In With Google”.
- Added ability to link/unlink Google account in user profile.
- Added WP-CLI functionality
- Fixed bug where user was not redirected properly.
- Removed Google+ API Dependency
- Removed call to css and js files that don’t exist.
- Added settings import and export
- Updated class and file naming
- Fixed bug where the user was not redirected properly after login.
- Fixed bug causing “Settings” link not to show on plugins page
- Cleaned up error logs
- Renamed plugin file to match directory
- Fixed bug causing a redirect loop if using the button on the login page
- Initial Release