pkpudev/yii2-simplesaml

Yii2 Simplesaml

Installs: 600

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Type:yii2-extension

0.5 2023-02-23 05:03 UTC

This package is auto-updated.

Last update: 2024-05-23 08:15:17 UTC


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