mrthat1996/oauth
最新稳定版本:1.3.0
Composer 安装命令:
composer require mrthat1996/oauth
包简介
Allow users to log in with GitHub, Twitter, Facebook, Google, and more!
关键字:
README 文档
README
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
composer require fof/oauth
Updating
composer update fof/oauth php flarum cache:clear
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>_buttonto 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/oauthas a dependency - Define a new
Providerwhich 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-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.
Links
An extension by FriendsOfFlarum.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-07