Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthSession.php
Show All 13 Lines | final class PhabricatorAuthSession extends PhabricatorAuthDAO | ||||
protected $highSecurityUntil; | protected $highSecurityUntil; | ||||
protected $isPartial; | protected $isPartial; | ||||
private $identityObject = self::ATTACHABLE; | private $identityObject = self::ATTACHABLE; | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'type' => 'text32', | |||||
'sessionKey' => 'bytes40', | |||||
'sessionStart' => 'epoch', | |||||
'sessionExpires' => 'epoch', | |||||
'highSecurityUntil' => 'epoch?', | |||||
'isPartial' => 'bool', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'sessionKey' => array( | |||||
'columns' => array('sessionKey'), | |||||
'unique' => true, | |||||
), | |||||
'key_identity' => array( | |||||
'columns' => array('userPHID', 'type'), | |||||
), | |||||
'key_expires' => array( | |||||
'columns' => array('sessionExpires'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getApplicationName() { | public function getApplicationName() { | ||||
// This table predates the "Auth" application, and really all applications. | // This table predates the "Auth" application, and really all applications. | ||||
return 'user'; | return 'user'; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |