lithium\security\auth\adapter\Http::__construct()
Constructor.
Parameters
-
array
$config
'method'
: default:digest
options:basic|digest
'realm'
: default:Protected by Lithium
'users'
: the users to permit. key => value pair of username => password
Returns
voidSource
public function __construct(array $config = []) {
$realm = basename(Libraries::get(true, 'path'));
$defaults = ['method' => 'digest', 'realm' => $realm, 'users' => []];
$this->_autoConfig($config + $defaults, []);
$this->_autoInit($config);
}