auraphp/Aura.Auth — pull request #58 by harikt (2014-12-13 06:46:04+00:00)
Title: A facade to hide the complexity of auth, resume

@pmjones the test fails.

But this is the idea I would like to share.

```php
$auth_factory = new AuthFactory($_COOKIE);
$adapter = $auth_factory->newPdoAdapter(
$this->pdo,
new PasswordVerifier('md5'),
array('username', 'password', 'active'),
'accounts',
null
);
$auth_facade = new AuthFacade($auth_factory, $adapter);
```

I don't know whether the naming of facade is also nice approach here. But the reason is to make it simple to call.

```php
$auth_facade->login($input);
$auth_facade->logout();
$auth_facade->getStatus();
```

Thank you.