johnhearfield/flarum-ext-oauth-google

Allow users to log in with Google.

Installs: 2 630

Dependents: 0

Suggesters: 0

Security: 0

Stars: 10

Watchers: 2

Forks: 5

Open Issues: 1

Type:flarum-extension

v0.1.0-beta.8.1 2016-06-08 20:21 UTC

This package is auto-updated.

Last update: 2024-04-06 20:09:30 UTC


README

Maintenance PRs Welcome

Allows users to login using their Google Account.

Installation

To install, use composer:

composer require johnhearfield/flarum-ext-oauth-google

Usage

  • Install extension via Composer / Packagist
  • Enable extension in the admin/extensions of Flarum
  • Fill in the settings field for the extension

Setup instructions for Google

  1. Go to the Google API Console: https://console.developers.google.com/project/_/apiui/apis/library
  2. Create a new project in the dropdown at the top and give it a name (eg My Flarum)
  3. Once on the project dashboard, search for Google+ and enable the API
  4. In the sidebar under "API Manager", select Credentials, then select the OAuth consent screen tab.
  5. Choose an Email Address, specify a Product Name, and press Save.
  6. In the Credentials tab, select the New credentials drop-down list, and choose OAuth client ID.
  7. Select Web Application
  8. The Authorized Javascript origin will be your domain: http://flarum.example.com
  9. The Authorised redirect URIs will be http://flarum.example.com/auth/google (notice it ends in /auth/google
  10. From the resulting OAuth client dialog box, you will be able to access the Client ID and the Client Secret will you will need to paste into the settings box on the Flarum extension

Notice The Hosted Domain paramater is for only allowing emails in your Google Apps account access, otherwise you should leave it blank