https://github.com/humanintiative/yii2-simplesaml
Yii2 SimpleSAML Extension
https://github.com/humanintiative/yii2-simplesaml
saml simplesamlphp yii2 yii2-extension
Last synced: 9 months ago
JSON representation
Yii2 SimpleSAML Extension
- Host: GitHub
- URL: https://github.com/humanintiative/yii2-simplesaml
- Owner: HumanIntiative
- License: mit
- Created: 2017-08-25T02:27:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T05:07:27.000Z (almost 3 years ago)
- Last Synced: 2025-04-18T11:20:12.792Z (9 months ago)
- Topics: saml, simplesamlphp, yii2, yii2-extension
- Language: PHP
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
README
========
Yii2 SimpleSaml for PKPU Dev Team
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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',
],
```