@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final 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}