public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('properties' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
Exemplo n.º 2
0
 public function save()
 {
     $this->setKeyIndex($this->toPublicKey()->getHash());
     return parent::save();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('properties' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('isEnabled' => 'bool', 'providerClass' => 'text128', 'providerType' => 'text32', 'providerDomain' => 'text128', 'shouldAllowLogin' => 'bool', 'shouldAllowRegistration' => 'bool', 'shouldAllowLink' => 'bool', 'shouldAllowUnlink' => 'bool', 'shouldTrustEmails' => 'bool', 'shouldAutoLogin' => 'bool'), self::CONFIG_KEY_SCHEMA => array('key_provider' => array('columns' => array('providerType', 'providerDomain'), 'unique' => true), 'key_class' => array('columns' => array('providerClass')))) + parent::getConfiguration();
 }
Exemplo n.º 4
0
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('type' => 'text32', 'sessionKey' => 'bytes40', 'sessionStart' => 'epoch', 'sessionExpires' => 'epoch', 'highSecurityUntil' => 'epoch?', 'isPartial' => 'bool', 'signedLegalpadDocuments' => '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();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('tokenType' => 'text64', 'tokenExpires' => 'epoch', 'tokenCode' => 'text64'), self::CONFIG_KEY_SCHEMA => array('key_token' => array('columns' => array('objectPHID', 'tokenType', 'tokenCode'), 'unique' => true), 'key_expires' => array('columns' => array('tokenExpires')))) + parent::getConfiguration();
 }
Exemplo n.º 6
0
 public function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_SERIALIZATION => array('properties' => self::SERIALIZATION_JSON), self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('factorKey' => 'text64', 'factorName' => 'text', 'factorSecret' => 'text'), self::CONFIG_KEY_SCHEMA => array('key_user' => array('columns' => array('userPHID')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('properties' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('tokenResource' => 'phid', 'tokenType' => 'text64', 'tokenExpires' => 'epoch', 'tokenCode' => 'text64', 'userPHID' => 'phid?'), self::CONFIG_KEY_SCHEMA => array('key_token' => array('columns' => array('tokenResource', 'tokenType', 'tokenCode'), 'unique' => true), 'key_expires' => array('columns' => array('tokenExpires')), 'key_user' => array('columns' => array('userPHID')))) + parent::getConfiguration();
 }