webuilder240 / cake-simple-http-auth
Cakephp Simple Http Auth
Package info
github.com/webuilder240/cake-simple-http-auth
Type:cakephp-plugin
pkg:composer/webuilder240/cake-simple-http-auth
0.0.2
2015-03-15 23:29 UTC
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2026-03-04 15:13:51 UTC
README
SimpleHttpAuthenticationPlugin for CakePHP
This plugin is only Basic Authentication now
How to Install
{
"require": {
"webuilder240/cake-simple-http-auth": "0.0.1"
}
}
How to Use
Set Setting in bootstrap.php
app/Config/bootstrap.php
<?php CakePlugin::load('SimpleHttpAuth'); Configure::write('SimpleHttpAuth.Config',[ 'stg' => [ 'user' => 'test', 'password' => 'test', ], ]);
your AppController.php
app/Controller/AppController.php
<?php App::uses('Controller','Controller'); class AppController extends Controller { public $components = [ 'SimpleHttpAuth.Basic', ];
About this plugin
see the http://webuilder240.github.io/2015/03/cake-simple-http-auth/