Skip to content

Commit

Permalink
Merge pull request #145 from sankalpbhatia/main
Browse files Browse the repository at this point in the history
Add refreshing of credentials before Oauth token generation
  • Loading branch information
sankalpbhatia authored Dec 7, 2023
2 parents 29b3372 + 63a9c4d commit 8b8d832
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ private void handleCallback(OAuthBearerTokenCallback callback) throws IOExceptio
if (callback.token() != null) {
throw new IllegalArgumentException("Callback had a token already");
}
credentialsProvider.refresh();
AWSCredentials awsCredentials = credentialsProvider.getCredentials();

// Generate token value i.e. Base64 encoded pre-signed URL string
Expand Down

0 comments on commit 8b8d832

Please sign in to comment.