asaladino/cas_authentication
最新稳定版本:v1.0
Composer 安装命令:
composer require asaladino/cas_authentication
包简介
CakePHP CAS Authentication
README 文档
README
Provides CAS authentication component for CakePHP applications.
Requirements
The master branch has the following requirements:
- CakePHP 2.2.0 or greater.
- PHP 5.4.0 or greater.
- Jasig phpCAS 1.3.0 or greater.
Installation
[Using Composer]
Add the plugin to your project's composer.json:
{ "require": { "asaladino/cas_authentication": "1.0.*" } }
Because this plugin has the type cakephp-plugin set in it's own composer.json, composer knows to install it inside your /Plugin directory, rather than in the usual vendors file. It is recommended that you add /Plugin/CasAuthentication to your .gitignore file. (Why? read this.)
[Manual]
- Download the CasAuthentication archive.
- Unzip that download.
- Rename the resulting folder to
CasAuthentication - Then copy this folder into
app/Plugin/
[Enable]
Add CakePlugin::loadAll(); to bootstrap.php then implement it in the controller.
class UsersController extends AppController { public $components = [ 'Auth' => [ 'authenticate' => [ 'CasAuthentication.Cas' => [ 'hostname' => 'cas.server.com', 'uri' => '/cas/', 'debug' => LOGS . 'log-file.log', 'disbled' => false ] ] ] ]; }
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-06