Skip to content

Commit

Permalink
Add token_response field to Oauth2Server (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis authored May 8, 2025
1 parent 969d231 commit acb075c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/plugins/CoreServer/src/Model/Table/Oauth2ServersTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
1 change: 1 addition & 0 deletions app/plugins/CoreServer/src/config/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit acb075c

Please sign in to comment.