Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/storage/PhabricatorAuthTemporaryToken.php
Show All 16 Lines | return array( | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'tokenType' => 'text64', | 'tokenType' => 'text64', | ||||
'tokenExpires' => 'epoch', | 'tokenExpires' => 'epoch', | ||||
'tokenCode' => 'text64', | 'tokenCode' => 'text64', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'key_token' => array( | 'key_token' => array( | ||||
'columns' => array('objectPHID', 'tokenType', 'tokenCode'), | 'columns' => array('objectPHID', 'tokenType', 'tokenCode'), | ||||
'unique' => true, | |||||
), | |||||
'key_expires' => array( | |||||
'columns' => array('tokenExpires'), | |||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function getTokenReadableTypeName() { | public function getTokenReadableTypeName() { | ||||
// Eventually, it would be nice to let applications implement token types | // Eventually, it would be nice to let applications implement token types | ||||
// so we can put this in modular subclasses. | // so we can put this in modular subclasses. | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |