diff --git a/apps/oauth2/lib/Db/AccessToken.php b/apps/oauth2/lib/Db/AccessToken.php index 34adc4f479782..6e0a9d06406f2 100644 --- a/apps/oauth2/lib/Db/AccessToken.php +++ b/apps/oauth2/lib/Db/AccessToken.php @@ -38,11 +38,10 @@ class AccessToken extends Entity { protected $tokenCount; public function __construct() { - $this->addType('id', Types::INTEGER); $this->addType('tokenId', Types::INTEGER); $this->addType('clientId', Types::INTEGER); - $this->addType('hashedCode', 'string'); - $this->addType('encryptedToken', 'string'); + $this->addType('hashedCode', Types::STRING); + $this->addType('encryptedToken', Types::STRING); $this->addType('codeCreatedAt', Types::INTEGER); $this->addType('tokenCount', Types::INTEGER); } diff --git a/apps/oauth2/lib/Db/Client.php b/apps/oauth2/lib/Db/Client.php index 8fce0040c96e5..a9d85c5b2f329 100644 --- a/apps/oauth2/lib/Db/Client.php +++ b/apps/oauth2/lib/Db/Client.php @@ -30,10 +30,9 @@ class Client extends Entity { protected $secret; public function __construct() { - $this->addType('id', Types::INTEGER); - $this->addType('name', 'string'); - $this->addType('redirectUri', 'string'); - $this->addType('clientIdentifier', 'string'); - $this->addType('secret', 'string'); + $this->addType('name', Types::STRING); + $this->addType('redirectUri', Types::STRING); + $this->addType('clientIdentifier', Types::STRING); + $this->addType('secret', Types::STRING); } }