Skip to content

Commit

Permalink
Merge pull request #21224 from ufundo/oauth-systoken-refresh-fix
Browse files Browse the repository at this point in the history
dev/core#2779 - Specify row fields to fetch in Api4 OAuthSysToken.Refresh
  • Loading branch information
seamuslee001 authored Aug 23, 2021
2 parents 69e04f8 + 1af0554 commit 061fd2b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/oauth-client/Civi/Api4/Action/OAuthSysToken/Refresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,15 @@ class Refresh extends BasicBatchAction {

private $syncFields = ['access_token', 'refresh_token', 'expires', 'token_type'];
private $writeFields = ['access_token', 'refresh_token', 'expires', 'token_type', 'raw'];
private $selectFields = ['id', 'client_id', 'access_token', 'refresh_token', 'expires', 'token_type', 'raw'];
private $providers = [];

public function __construct($entityName, $actionName) {
parent::__construct($entityName, $actionName, '*');
parent::__construct($entityName, $actionName);
}

protected function getSelect() {
return $this->selectFields;
}

protected function doTask($row) {
Expand Down

0 comments on commit 061fd2b

Please sign in to comment.