File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
s3/src/main/java/ch/cyberduck/core/sts Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public TemporaryAccessTokens assumeRole(final Credentials credentials) throws Ba
178178 request .setRoleArn (roleArn );
179179 }
180180 else {
181- if (StringUtils . EMPTY . equals ( roleArn )) {
181+ if (bookmark . getProtocol (). isRoleConfigurable ( )) {
182182 // When defined in connection profile but with empty value
183183 log .debug ("Prompt for Role ARN" );
184184 final Credentials input = prompt .prompt (bookmark ,
@@ -198,7 +198,7 @@ public TemporaryAccessTokens assumeRole(final Credentials credentials) throws Ba
198198 request .setSerialNumber (mfaArn );
199199 }
200200 else {
201- if (StringUtils . EMPTY . equals ( mfaArn )) {
201+ if (bookmark . getProtocol (). isMultiFactorConfigurable ( )) {
202202 // When defined in connection profile but with empty value
203203 log .debug ("Prompt for MFA ARN" );
204204 try {
@@ -296,7 +296,7 @@ public TemporaryAccessTokens assumeRoleWithWebIdentity(final Credentials credent
296296 request .setRoleArn (roleArn );
297297 }
298298 else {
299- if (StringUtils . EMPTY . equals ( roleArn )) {
299+ if (bookmark . getProtocol (). isRoleConfigurable ( )) {
300300 // When defined in connection profile but with empty value
301301 log .debug ("Prompt for Role ARN" );
302302 final Credentials input = prompt .prompt (bookmark ,
You can’t perform that action at this time.
0 commit comments