An open API service indexing awesome lists of open source software.

https://github.com/HumanInitiative/yii2-simplesaml

Yii2 SimpleSAML Extension
https://github.com/HumanInitiative/yii2-simplesaml

saml simplesamlphp yii2 yii2-extension

Last synced: 7 months ago
JSON representation

Yii2 SimpleSAML Extension

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',
],
```