alcad/yii2-cas

There is no license information available for the latest version (dev-master) of this package.

Simple client for CAS

Installs: 967

Dependents: 0

Suggesters: 0

Security: 0

Stars: 9

Watchers: 4

Forks: 4

Type:yii2-extension

dev-master 2020-11-17 13:13 UTC

This package is not auto-updated.

Last update: 2022-11-26 07:18:17 UTC


README

Simple wrapper for phpCAS in Yii2

NOTE: Module is in initial development. jasig/phpCAS is required

Configuration

config/param.php

return [
	...
	'cas' => [
		'host' => 'https://app.example.com/',
		'port' => 443,
		'uri' => '/cas',
                'log_file' => '/tmp/phpCAS.log',
	],
	...
];

config/web.php

$config = [
	...
	'bootstrap' => [... , 'cas'],
	'components' => [
		'casUser' => [
			'class' => 'alcad\cas\CasUser',
		]
	],
	'modules' => [
		'cas' => [
			'class' => 'alcad\cas\Cas',
		],
	]
	...
]