multidimensional / phpbbauth
一个用于phpBB身份验证的MediaWiki扩展,使用Auth_remoteuser。
0.0.6
2019-01-18 07:53 UTC
Requires
- php: >=5.4.0
- composer/installers: ~1.0.1
- mediawiki/auth-remoteuser: >=2.0.0
Requires (Dev)
README
一个MediaWiki扩展,使用Auth_remoteuser进行phpBB身份验证。
要求
- Mediawiki 1.36+(对于较旧的MediaWiki安装,请使用V0.0.6)
- phpBB 3.0+
- 扩展: Auth_remoteuser 2.0+
安装
下载扩展并将其添加到您的扩展文件夹,或通过将其添加到您的composer.local.json
文件中进行安装。
{
"require": {
"multidimensional/phpbbauth": "*"
}
}
在LocalSettings.php
中设置Auth_remoteuser的先决条件。
wfLoadExtension( 'Auth_remoteuser' ); $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['autocreateaccount'] = true;
在LocalSettings.php
中激活扩展并设置您的phpBB目录位置。
wfLoadExtension( 'Phpbbauth' ); $wgPhpbbAuthForumDirectory = './../phpBB3/'; $wgPhpbbAuthAbsolutePath = '//www.domain.com/phpBB3/'; require_once "$IP/extensions/Phpbbauth/PhpbbAuth.php";
这就完成了!
高级设置
您可以为登录到您的维基的用户指定MediaWiki将使用的格式。默认情况下,登录名首字母大写,其余小写。您可以在LocalSettings.php
中设置以下内容:
$wgPhpbbAuthNameFormat = 'phpbb';
这将使您的MediaWiki用户名与phpBB相同。
许可证
The MIT License (MIT)
Copyright (c) 2018 multidimension.al
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.