diff --git a/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/rest/auth/JiraOauthConfig.java b/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/rest/auth/JiraOauthConfig.java index 9228fa82df..0bf6614e6a 100644 --- a/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/rest/auth/JiraOauthConfig.java +++ b/data-prepper-plugins/saas-source-plugins/jira-source/src/main/java/org/opensearch/dataprepper/plugins/source/jira/rest/auth/JiraOauthConfig.java @@ -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); }