diff --git a/app/plugins/CoreServer/src/Model/Table/Oauth2ServersTable.php b/app/plugins/CoreServer/src/Model/Table/Oauth2ServersTable.php index ffc9113e3..54e720c59 100644 --- a/app/plugins/CoreServer/src/Model/Table/Oauth2ServersTable.php +++ b/app/plugins/CoreServer/src/Model/Table/Oauth2ServersTable.php @@ -270,6 +270,14 @@ public function validationDefault(Validator $validator): Validator { ]); $validator->allowEmptyString('access_token'); + $validator->add('token_response', [ + 'content' => [ + 'rule' => 'validateNotBlank', + 'provider' => 'table' + ] + ]); + $validator->allowEmptyString('token_response'); + $validator->integer('access_token_exp') ->allowEmptyString('access_token_exp'); diff --git a/app/plugins/CoreServer/src/config/plugin.json b/app/plugins/CoreServer/src/config/plugin.json index b9687eaf7..f64e58cbd 100644 --- a/app/plugins/CoreServer/src/config/plugin.json +++ b/app/plugins/CoreServer/src/config/plugin.json @@ -49,6 +49,7 @@ "scope": { "type": "string", "size": 256 }, "refresh_token": { "type": "text" }, "access_token": { "type": "text" }, + "token_response": { "type": "text" }, "access_token_exp": { "type": "boolean" } }, "indexes": {