Download the PHP package mrthat1996/oauth without Composer
On this page you can find all versions of the php package mrthat1996/oauth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrthat1996/oauth
More information about mrthat1996/oauth
Files in mrthat1996/oauth
Package oauth
Short Description Allow users to log in with GitHub, Twitter, Facebook, Google, and more!
License MIT
Homepage https://friendsofflarum.org
Informations about the package oauth
OAuth by FriendsOfFlarum
A Flarum extension. Allow users to log in with various OAuth providers
Bundled providers
By default these providers are included:
- Discord
- Github
- Gitlab
Additional providers
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!
Screenshots
Default provider settings example
Login/signup example with Github
, Twitter
, Twitch
and Google
enabled.
Installation
Updating
Configuration
Translation
You can replace the text for the forum sign in buttons in two ways.
- Use
fof-oauth.forum.providers.<name>
to replace the name of the provider on the forum side - Use
fof-oauth.forum.log_in.with_<name>_button
to replace the entire button "Log In with" text
Extending
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/oauth
as a dependency - Define a new
Provider
which extendsFoF\OAuth\Provider
- From your new extensions
extend.php
, register the provider(new FoF\OAuth\Extend\RegisterProvider(MyNewProvider::class))
- Provide the required translations under the
fof-oauth
namespace. See the linked example extension for details on which keys are required. - (optionally) Provide an admin panel link to
fof/oauth
for easy configuration. Again, see the linked example. - (optionally) Provide any CSS required to style your new login button. See the linked example.
Links
An extension by FriendsOfFlarum.
All versions of oauth with dependencies
league/oauth1-client Version ^1.8.2
league/oauth2-facebook Version ^2.0.3
league/oauth2-github Version ^3.0.0
league/oauth2-google Version ^4.0.0
omines/oauth2-gitlab Version ^3.3.0
wohali/oauth2-discord-new Version ^1.1.0
league/oauth2-linkedin Version ^5.1.2
fof/extend Version ^1.1