Skip to content

Commit e262a6c

Browse files
committed
Attempt refresh first.
1 parent e7872b3 commit e262a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

s3/src/main/java/ch/cyberduck/core/sts/STSAssumeRoleWithWebIdentityRequestInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public TemporaryAccessTokens refresh(final Credentials credentials) throws Backg
6767
catch(LoginFailureException e) {
6868
// Expired or invalid OAuth tokens
6969
log.warn("Failure {} authorizing. Retry with refreshed OAuth tokens", e.getMessage());
70-
return this.tokens = this.assumeRoleWithWebIdentity(oauth.authorize(), arn);
70+
return this.tokens = this.assumeRoleWithWebIdentity(oauth.refresh(), arn);
7171
}
7272
finally {
7373
lock.unlock();

0 commit comments

Comments
 (0)