webuilder240 / cake-simple-http-auth
Cakephp Simple Http Auth
Installs: 58
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2024-11-13 08:57:21 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/