Skip to content

Commit c6ddd18

Browse files
committed
Fix check for session token.
1 parent a927ff3 commit c6ddd18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

s3/src/main/java/ch/cyberduck/core/s3/S3AWS2SignatureRequestInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void process(final HttpRequest request, final HttpContext context) throws
5858
log.warn("Skip authentication request {}", request);
5959
return;
6060
}
61-
if(credentials.isTokenAuthentication()) {
61+
if(StringUtils.isNotBlank(credentials.getToken())) {
6262
request.setHeader(SECURITY_TOKEN, credentials.getToken());
6363
}
6464
final String bucketName;

s3/src/main/java/ch/cyberduck/core/s3/S3AWS4SignatureRequestInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void process(final HttpRequest request, final HttpContext context) throws
6464
log.warn("Skip authentication request {}", request);
6565
return;
6666
}
67-
if(credentials.isTokenAuthentication()) {
67+
if(StringUtils.isNotBlank(credentials.getToken())) {
6868
request.setHeader(SECURITY_TOKEN, credentials.getToken());
6969
}
7070
final String bucketName;

0 commit comments

Comments
 (0)