A Flarum extension. Allow users to log in with various OAuth providers
By default these providers are included:
This extension provides the ability to view the status of linked OAuth providers (intended for admin and/or moderator use). In order for this to function correctly, you must also set the permission Moderate Access Tokens
to at least the same group as you require for Moderate user's linked accounts
.
Additional OAuth providers are available for this extension. Here's a handy list of known extensions, let us know if you know of any more and we'll get them added!
Default provider settings example
Login/signup example with Github
, Twitter
, Twitch
and Google
enabled.
composer require fof/oauth
composer update fof/oauth
php flarum cache:clear
You can replace the text for the forum sign in buttons in two ways.
fof-oauth.forum.providers.<name>
to replace the name of the provider on the forum sidefof-oauth.forum.log_in.with_<name>_button
to replace the entire button "Log In with It is possible to add additional Providers
using an extender. See OAuth-Amazon for an example of how to accomplish this but basically:
fof/oauth
as a dependencyProvider
which extends FoF\OAuth\Provider
extend.php
, register the provider (new FoF\OAuth\Extend\RegisterProvider(MyNewProvider::class))
fof-oauth
namespace. See the linked example extension for details on which keys are required.fof/oauth
for easy configuration. Again, see the linked example.An extension by FriendsOfFlarum.