webuilder240/cake-simple-http-auth

Cakephp Simple Http Auth

0.0.2 2015-03-15 23:29 UTC

This package is not auto-updated.

Last update: 2024-04-17 06:33:29 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/