Property | Type | Description | |
---|---|---|---|
$cookieOptions | array | ||
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | ||
$flashLogger | Bolt\Logger\FlashLoggerInterface | ||
$permissions | Bolt\AccessControl\Permissions | ||
$randomGenerator | |||
$requestStack | Symfony\Component\HttpFoundation\RequestStack | ||
$session | Symfony\Component\HttpFoundation\Session\SessionInterface | ||
$systemLogger | Psr\Log\LoggerInterface | ||
$validSession | boolean |
Method | Description | |
---|---|---|
__construct ( Bolt\Storage\EntityManagerInterface $em, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Bolt\Logger\FlashLoggerInterface $flashLogger, Psr\Log\LoggerInterface $systemLogger, Bolt\AccessControl\Permissions $permissions, |
Constructor. | |
getActiveSessions ( ) : array | Lookup active sessions. | |
isValidSession ( string $authCookie ) : boolean | We will not allow tampering with sessions, so we make sure the current session is still valid for the device on which it was created, and that the username, and IP address, are still the same. | |
revokeSession ( ) : boolean | Log out the currently logged in user. |
Method | Description | |
---|---|---|
checkSessionDatabase ( string $authCookie ) : boolean | Check the user authentication cookie against what is stored in the database. | |
checkSessionKeys ( |
Check the session is still valid for the device on which it was created, and. i.e. the username, IP address, and (if configured) the browser agent values are all still the same. | |
checkSessionStored ( |
Check the stored session, if we're past expiry then return false regardless and force a check/update from the database authentication record. | |
getAuthToken ( string $username, string $salt ) : string | boolean | Get a MD5 hash key to identify the session with. This is calculated from a name, a salt, and optionally the remote IP address, broswer's agent string and the user's HTTP hostname. | |
getClientHost ( ) : string | Return the user's host name. | |
getClientIp ( ) : string | Return the user's IP address. | |
getClientUserAgent ( ) : string | Return the user's browser User Agent. | |
getRepositoryAuthtoken ( ) : Bolt\Storage\Repository\AuthtokenRepository | ||
getRepositoryUsers ( ) : |
public __construct ( Bolt\Storage\EntityManagerInterface $em, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\HttpFoundation\Session\SessionInterface $session, Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher, Bolt\Logger\FlashLoggerInterface $flashLogger, Psr\Log\LoggerInterface $systemLogger, Bolt\AccessControl\Permissions $permissions, |
||
$em | Bolt\Storage\EntityManagerInterface | |
$requestStack | Symfony\Component\HttpFoundation\RequestStack | |
$session | Symfony\Component\HttpFoundation\Session\SessionInterface | |
$dispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface | |
$flashLogger | Bolt\Logger\FlashLoggerInterface | |
$systemLogger | Psr\Log\LoggerInterface | |
$permissions | Bolt\AccessControl\Permissions | |
$randomGenerator | ||
$cookieOptions | array |
protected checkSessionDatabase ( string $authCookie ) : boolean | ||
$authCookie | string | |
return | boolean |
protected checkSessionKeys ( |
||
$sessionAuth | ||
return | boolean |
protected checkSessionStored ( |
||
$sessionAuth | ||
return | boolean |
public getActiveSessions ( ) : array | ||
return | array |
protected getClientHost ( ) : string | ||
return | string |
protected getClientIp ( ) : string | ||
return | string |
protected getClientUserAgent ( ) : string | ||
return | string |
protected getRepositoryAuthtoken ( ) : Bolt\Storage\Repository\AuthtokenRepository | ||
return | Bolt\Storage\Repository\AuthtokenRepository |
protected getRepositoryUsers ( ) : |
||
return |
public isValidSession ( string $authCookie ) : boolean | ||
$authCookie | string | |
return | boolean |
public revokeSession ( ) : boolean | ||
return | boolean |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher | ||
return | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected FlashLoggerInterface,Bolt\Logger $flashLogger | ||
return | Bolt\Logger\FlashLoggerInterface |
protected Permissions,Bolt\AccessControl $permissions | ||
return | Bolt\AccessControl\Permissions |
protected Generator,Bolt\Security\Random $randomGenerator | ||
return |
protected RequestStack,Symfony\Component\HttpFoundation $requestStack | ||
return | Symfony\Component\HttpFoundation\RequestStack |
protected SessionInterface,Symfony\Component\HttpFoundation\Session $session | ||
return | Symfony\Component\HttpFoundation\Session\SessionInterface |
protected LoggerInterface,Psr\Log $systemLogger | ||
return | Psr\Log\LoggerInterface |