Differential D10527 Diff 25342 src/applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php
<?php | <?php | ||||
final class PhabricatorOAuthServerAuthorizationCode | final class PhabricatorOAuthServerAuthorizationCode | ||||
extends PhabricatorOAuthServerDAO { | extends PhabricatorOAuthServerDAO { | ||||
protected $id; | protected $id; | ||||
protected $code; | protected $code; | ||||
protected $clientPHID; | protected $clientPHID; | ||||
protected $clientSecret; | protected $clientSecret; | ||||
protected $userPHID; | protected $userPHID; | ||||
protected $redirectURI; | protected $redirectURI; | ||||
public function getConfiguration() { | |||||
return array( | |||||
self::CONFIG_COLUMN_SCHEMA => array( | |||||
'code' => 'text32', | |||||
'clientSecret' => 'text32', | |||||
'redirectURI' => 'text255', | |||||
), | |||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'code' => array( | |||||
'columns' => array('code'), | |||||
'unique' => true, | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | |||||
} | |||||
} | } |