Allow users to log in with GitHub, Twitter, Facebook, Google, and more!
OAuth by FriendsOfFlarum
A Flarum extension. Allow users to log in with GitHub, Twitter, Facebook, Discord, GitLab, Google and LinkedIn!
composer require fof/oauth:"*"
composer update fof/oauth
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 side
fof-oauth.forum.log_in.with_<name>_buttonto 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:
- In your new extension, require
fof/oauthas a dependency
- Define a new
- From your new extensions
extend.php, register the provider
- Provide the required translations under the
fof-oauthnamespace. See the linked example extension for details on which keys are required.
- (optionally) Provide an admin panel link to
fof/oauthfor easy configuration. Again, see the linked example.
- (optionally) Provide any CSS required to style your new login button. See the linked example.
An extension by FriendsOfFlarum.