All Projects → tarecord → sign-in-with-google

tarecord / sign-in-with-google

Licence: GPL-2.0 license
A WordPress plugin that adds "Sign in with Google" functionality

Programming Languages

PHP
23972 projects - #3 most used programming language
shell
77523 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to sign-in-with-google

cb4
Joint Online Judge
Stars: ✭ 20 (-16.67%)
Mutual labels:  oauth
oidc
Easy to use OpenID Connect client and server library written for Go and certified by the OpenID Foundation
Stars: ✭ 475 (+1879.17%)
Mutual labels:  oauth
omniauth-mastodon
OmniAuth strategy for Mastodon
Stars: ✭ 27 (+12.5%)
Mutual labels:  oauth
cli-cube-timer
Time your solves, without leaving the terminal
Stars: ✭ 19 (-20.83%)
Mutual labels:  oauth
servicenow-powershell
PowerShell module to automate ServiceNow service and asset management. This module can be used standalone, with Azure Automation, or Docker.
Stars: ✭ 310 (+1191.67%)
Mutual labels:  oauth
django-rest-framework-oauth
OAuth support for Django REST Framework
Stars: ✭ 52 (+116.67%)
Mutual labels:  oauth
Device-Flow-Proxy-Server
Add the OAuth 2.0 Device Flow to any OAuth server
Stars: ✭ 64 (+166.67%)
Mutual labels:  oauth
laravel-socialiter
Automatically manage user persistence and resolution for any Laravel Socialite provider.
Stars: ✭ 43 (+79.17%)
Mutual labels:  oauth
Mal4J
Java wrapper for the official MyAnimeList API
Stars: ✭ 23 (-4.17%)
Mutual labels:  oauth
jfinal-justauth-demo
Jfinal集成JustAuth的demo
Stars: ✭ 26 (+8.33%)
Mutual labels:  oauth
oauther
OAuth 1.0 for Elixir
Stars: ✭ 64 (+166.67%)
Mutual labels:  oauth
okta-microservice-security-examples
Demos from Oktane18: API and Microservices Best Practices
Stars: ✭ 17 (-29.17%)
Mutual labels:  oauth
casdoor-go-sdk
Go client SDK for Casdoor
Stars: ✭ 37 (+54.17%)
Mutual labels:  oauth
google-oauth2-web-client
Login with Google using OAuth2 for client-side web app
Stars: ✭ 32 (+33.33%)
Mutual labels:  oauth
Diber-backend
Delivery Service - Spring Boot / Spring Data Jpa / Hibernate / PostgreSQL / OAuth2 Application
Stars: ✭ 22 (-8.33%)
Mutual labels:  oauth
ApiJwtWithTwoSts
Web API authorization, multi-IDP solutions in ASP.NET Core
Stars: ✭ 43 (+79.17%)
Mutual labels:  oauth
materialize-social
Social Login Buttons for MaterializeCSS
Stars: ✭ 50 (+108.33%)
Mutual labels:  oauth
mod oauth2
OAuth 2.x Resource Server module for the Apache HTTPd web server
Stars: ✭ 34 (+41.67%)
Mutual labels:  oauth
nexus3-github-oauth-plugin
This nexus plugin provides a way to authenticate/authorize your users based on Github.
Stars: ✭ 52 (+116.67%)
Mutual labels:  oauth
jax-rs-pac4j
Security library for JAX-RS and Jersey
Stars: ✭ 48 (+100%)
Mutual labels:  oauth

Sign In With Google

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.

Features

  • 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_login to your url (for example: https://mysitename.com/?mysitename_login) will log in the user, or redirect them to log in with Google.

Warning

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.

Installation

Sign in with Google uses OAuth 2.0 and requires that an application be created in Google's developer console. Unfortunately, there is no way around this, but I'll try to make this process as simple as possible.

Navigate to Google's Developer Console and click the dropdown to create a new project.

Once your project has been created, navigate to the OAuth consent screen section and choose a User Type that matches how you will be utilizing the plugin. (Gmail users are only able to select "External") image

Next, fill out the required information for the consent screen (the only required information here is the "Application Name")

Once you have added your application name, navigate to the Credentials section and create an OAuth client ID (This is where you get a client ID and secret to enter in the plugin settings page) image

Next, choose "Web application", Enter a name for the Credential (something like "[Company Name] Google Sign In" would be good) then in the "Authorized redirect URIs" enter in the following replacing "DOMAIN.TLD" with your site's domain and whether you're using SSL or not (https or http).

https://DOMAIN.TLD/?google_response

Once you have added the domain, click save and you should see a section at the top that lists the Client ID and Client secret.

image

Return to the plugin settings in your site's admin. Add the Client ID and Client Secret you just created.

image

Verify that you can log in with Google.

Contribution

All active plugin development is handled here. Feel free to submit pull requests and issues.

To run tests:

  1. Clone the repository
  2. Install dependencies
composer install
  1. Install and Run PHPUnit tests
bash bin/install-wp-tests.sh wordpress_test root '' localhost latest

./vendor/bin/phpunit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].