Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/oauthserver/storage/PhabricatorOAuthServerAuthorizationCode.php
12242 views
1
<?php
2
3
final class PhabricatorOAuthServerAuthorizationCode
4
extends PhabricatorOAuthServerDAO {
5
6
protected $id;
7
protected $code;
8
protected $clientPHID;
9
protected $clientSecret;
10
protected $userPHID;
11
protected $redirectURI;
12
13
protected function getConfiguration() {
14
return array(
15
self::CONFIG_COLUMN_SCHEMA => array(
16
'code' => 'text32',
17
'clientSecret' => 'text32',
18
'redirectURI' => 'text255',
19
),
20
self::CONFIG_KEY_SCHEMA => array(
21
'code' => array(
22
'columns' => array('code'),
23
'unique' => true,
24
),
25
),
26
) + parent::getConfiguration();
27
}
28
29
}
30
31