- 已编辑
安装插件 FoF OAuth 官方: https://flarum.org/extension/fof/oauth
- Allow users to log in with GitHub, Twitter, Facebook, Google, and more!
- 安装插件命令
composer require fof/oauth
配置 Github 的 OAuth 2.0 服务登录第三方网站,参考图文教程
- 前往 https://github.com/settings/developers 创建 OAuth 应用。
- 根据需要可将回调 URL 设为 https://bbs.lyvba.com/auth/github。
获得客户端ID和密钥,类似
Client ID: Ov23**************sxV
Client secrets: 0607*********a074**********90c
配置 Google 谷歌 OAuth 2.0 服务登录第三方网站,参考图文教程
- 前往此处创建应用:https://console.developers.google.com/apis/credentials
- 根据需要可将回调 URL 设为 https://bbs.lyvba.com/auth/google。
获得客户端ID和密钥,类似
客户端 ID: 660**************24.apps.googleusercontent.com
客户端密钥: GOCSPX-_**************VWh