gzero / vanilla-integration
Gzero Vanilla 集成
v2.0.0
2017-05-01 10:10 UTC
Requires
- php: >=7.1.0
- gzero/core: ^2.0
- illuminate/auth: 5.4.*
- illuminate/config: 5.4.*
- illuminate/routing: 5.4.*
Requires (Dev)
- fzaninotto/faker: 1.4.0
- mockery/mockery: 0.9.*
- phpmd/phpmd: 2.*
- phpunit/phpunit: ^6.0
- squizlabs/php_codesniffer: 1.*
This package is not auto-updated.
Last update: 2024-09-25 15:21:32 UTC
README
Vanilla 论坛集成包,用于 GZERO CMS
目录
安装
首先,通过 Composer 安装此包。编辑您的项目 composer.json 文件以要求 gzero/vanilla-integration。
"require": { "gzero/vanilla-integration": "^2.0", }
然后,在终端中更新 Composer
composer update
配置
在 app/config/app.php 中将服务提供者添加到平台配置中
'Gzero\Vanilla\ServiceProvider'
覆盖配置
为了覆盖一些配置选项,发布配置文件
php artisan config:publish gzero/vanilla-integration
在发布的包配置文件中设置给定服务的必需凭证
return [ 'forum_domain' => 'vanilla.dev', 'sso' => 'http://vanilla.dev/sso', 'client_id' => 'your_vanilla_client_id', 'secret' => 'your_vanilla_secret', ];
在 Vanilla 论坛 jsConnect 设置中设置 sso url
http://dev.gzero.pl/_hidden/vanilla-sso
如何使用此集成
为了确保用户与您的 GZERO CMS 网站同步,您应始终使用 forum_url() 助手构建所有论坛页面的 url。
URL::to(forum_url()); return Redirect::to(forum_url()); return Redirect::to(forum_url('categories'));
为了获得与 Vanilla 论坛的非常紧密的 SSO 集成,您还需要遵循以下步骤。
####在 Vanilla 中
- 将您的注册方式改为 'Connect' 以阻止非 SSO 用户注册。
- 在仪表板中 jsConnect 的设置下设置您的登录、注销和注册 URL。
- 勾选 "将此连接设置为默认登录方法"。
- 在 jsConnect 集成页面上设置 "登录 URL"、"注册 URL" 和 "注销 URL"
####在 GZERO CMS 中
- 始终使用
forum_url助手