定制 mediawiki/guzzle-json-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mediawiki/guzzle-json-auth

最新稳定版本:0.1.2

Composer 安装命令:

composer require mediawiki/guzzle-json-auth

包简介

Authenticate with a JSON endpoint using a configurable Guzzle client

README 文档

README

Authenticate your MediaWiki with a JSON endpoint using a configurable Guzzle client

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Install

Requirements

  • PHP >= 5.4
  • Composer
  • MediaWiki 1.22

Via Composer

$ composer require mediawiki/guzzle-json-auth

Usage

To Setup the authentication, add the following lines to your LocalSettings.php and change the values to your needs:

# Setup GuzzleJsonAuth
$wgGuzzleJsonAuthUrl = 'http://yourapplication.com/your_json_endpoint';

$wgGuzzleJsonRequestBaseKey = 'User';
$wgGuzzleJsonRequestUsernameKey = 'username';
$wgGuzzleJsonRequestPasswordKey = 'password';

$wgGuzzleJsonResponseBaseKey = 'user';
$wgGuzzleJsonResponseUsernameKey = 'username';
$wgGuzzleJsonResponseRealNameKey = 'real_name';
$wgGuzzleJsonResponseEmailKey = 'email';

// Load and initialize the GuzzleJsonAuth extension
require_once("$IP/extensions/GuzzleJsonAuth/GuzzleJsonAuth.php");
$wgAuth = new \MediaWiki\GuzzleJsonAuth\GuzzleJsonAuth();

Authenticated users will be created in your Wikis database, but without password.

The authentication endpoint needs to return at least tne username, real name and email of the authenticated user as result. If the authentication failed, it must not return the username, otherwise it the user will be logged in nonetheless.

This extension will fall back to local authentication, if the user could not be authenticated externally.

Change log

Please see CHANGELOG.md for more information what has changed recently.

Testing

$ phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email ravage@bluewin.ch instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固