Skip to content

Commit

Permalink
update local copy values
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Gandhe <[email protected]>
  • Loading branch information
san81 committed Jan 21, 2025
1 parent b4aa574 commit 784106e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ public void renewCredentials() {
// Try refreshing the secrets and see if that helps
// Refreshing one of the secret refreshes the entire store so we are good to trigger refresh on just one
jiraSourceConfig.getAuthenticationConfig().getOauth2Config().getAccessToken().refresh();
this.accessToken = (String) jiraSourceConfig.getAuthenticationConfig().getOauth2Config()
.getAccessToken().getValue();
this.refreshToken = (String) jiraSourceConfig.getAuthenticationConfig()
.getOauth2Config().getRefreshToken().getValue();
}
throw new RuntimeException("Failed to renew access token message:" + ex.getMessage(), ex);
}
Expand Down

0 comments on commit 784106e

Please sign in to comment.