pkpudev/yii2-simplesaml
最新稳定版本:0.6
Composer 安装命令:
composer require pkpudev/yii2-simplesaml
包简介
Yii2 Simplesaml
README 文档
README
Yii2 SimpleSaml for PKPU Dev Team
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist pkpudev/yii2-simplesaml "*"
or add
"pkpudev/yii2-simplesaml": "*"
to the require section of your composer.json file.
Usage
Add this to your config
'user' => [
'class' => 'pkpudev\simplesaml\WebUser',
'identityClass' => 'path\to\models\User',
'autoloaderPath'=>'/path/to/simplesamlphp/version/lib/_autoload.php',
'authSource'=>'your-client',
'attributesConfig'=>array(
'id'=>'id',
'username'=>'user_name',
'name'=>'full_name',
'fullname'=>'full_name',
'email'=>'email',
// add others
),
'superuserCheck' => true,
'superuserPermissionName' => 'superuserAccess',
],
统计信息
- 总下载量: 867
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-16