Skip to content

Commit 232f98b

Browse files
committed
Restart authorization flow for invalid tokens.
1 parent 5939781 commit 232f98b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)