Code Monkey home page Code Monkey logo

flarum-ext-oauth-google's Introduction

Flarum Google Authenticator

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

flarum-ext-oauth-google's People

Contributors

ardacebi avatar dshovchko avatar edgimar avatar johnhearfield avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flarum-ext-oauth-google's Issues

Conflicting version

Hey!

It gives me:
`Your requirements could not be resolved to an installable set of packages.

Problem 1
- league/oauth2-google 1.0.1 requires league/oauth2-client ~1.0 -> satisfiable by league/oauth2-client[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2] but these conflict with your requirements or minimum-stability.
- league/oauth2-google 1.0.0-beta3 requires league/oauth2-client ~1.0 -> satisfiable by league/oauth2-client[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2] but these conflict with your requirements or minimum-stability.
- league/oauth2-google 1.0.0-beta2 requires league/oauth2-client ~1.0 -> satisfiable by league/oauth2-client[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2] but these conflict with your requirements or minimum-stability.
- league/oauth2-google 1.0.0-beta1 requires league/oauth2-client ~1.0 -> satisfiable by league/oauth2-client[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2] but these conflict with your requirements or minimum-stability.
- league/oauth2-google 1.0.0 requires league/oauth2-client ~1.0 -> satisfiable by league/oauth2-client[1.0.0, 1.0.0-alpha1, 1.0.0-alpha2, 1.0.0-beta1, 1.0.0-beta2, 1.0.1, 1.0.2, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.4.1, 1.4.2] but these conflict with your requirements or minimum-stability.
- johnhearfield/flarum-ext-oauth-google v0.1.0-beta.8.1 requires league/oauth2-google ~1.0 -> satisfiable by league/oauth2-google[1.0.0, 1.0.0-beta1, 1.0.0-beta2, 1.0.0-beta3, 1.0.1].
- Installation request for johnhearfield/flarum-ext-oauth-google v0.1.0-beta.8.1 -> satisfiable by johnhearfield/flarum-ext-oauth-google[v0.1.0-beta.8.1].
`

So I presume there's a problem with league/oauth2-google ?

Already usable?

Hi, i just found this repo, i need to integrate google login, is this plugin already working?

403 Forbidden

Hi, I'm having trouble using this extension.

The extension seems to be configured OK, but when I try to login, after I enter my Google username and password, I get a 301 HTTP error with this address:

https://urlofmysite.com/auth/google?state=(blahblah)&code=(blahblah)#

I'm using the .htaccess file provided by Flarum. It's a 64-bit CentOS 7, with Apache 2.4.16 and PHP 7. Everything else works as expected and the error log is empty. I'm reporting this because I can't find an external cause for this problem.

Thanks in advance.

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.