Свойство | Тип | Описание | |
---|---|---|---|
$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 |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | |
Результат | boolean |
protected checkSessionKeys ( |
||
$sessionAuth | ||
Результат | boolean |
protected checkSessionStored ( |
||
$sessionAuth | ||
Результат | boolean |
public getActiveSessions ( ) : array | ||
Результат | array |
protected getClientHost ( ) : string | ||
Результат | string |
protected getClientIp ( ) : string | ||
Результат | string |
protected getClientUserAgent ( ) : string | ||
Результат | string |
protected getRepositoryAuthtoken ( ) : Bolt\Storage\Repository\AuthtokenRepository | ||
Результат | Bolt\Storage\Repository\AuthtokenRepository |
protected getRepositoryUsers ( ) : |
||
Результат |
public isValidSession ( string $authCookie ) : boolean | ||
$authCookie | string | |
Результат | boolean |
public revokeSession ( ) : boolean | ||
Результат | boolean |
protected EventDispatcherInterface,Symfony\Component\EventDispatcher $dispatcher | ||
Результат | Symfony\Component\EventDispatcher\EventDispatcherInterface |
protected FlashLoggerInterface,Bolt\Logger $flashLogger | ||
Результат | Bolt\Logger\FlashLoggerInterface |
protected Permissions,Bolt\AccessControl $permissions | ||
Результат | Bolt\AccessControl\Permissions |
protected Generator,Bolt\Security\Random $randomGenerator | ||
Результат |
protected RequestStack,Symfony\Component\HttpFoundation $requestStack | ||
Результат | Symfony\Component\HttpFoundation\RequestStack |
protected SessionInterface,Symfony\Component\HttpFoundation\Session $session | ||
Результат | Symfony\Component\HttpFoundation\Session\SessionInterface |
protected LoggerInterface,Psr\Log $systemLogger | ||
Результат | Psr\Log\LoggerInterface |