Skip to content

Commit 1e5717b

Browse files
committed
Move to class.
1 parent fb79f8a commit 1e5717b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

hub/src/main/java/cloud/katta/protocols/s3/S3AssumeRoleSession.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,7 @@ protected S3CredentialsStrategy configureCredentialsStrategy(final HttpClientBui
4141
final OAuth2RequestInterceptor oauth = host.getProtocol().getFeature(OAuth2RequestInterceptor.class);
4242
log.debug("Register interceptor {}", oauth);
4343
configuration.addInterceptorLast(oauth);
44-
final STSRequestInterceptor sts = new STSChainedAssumeRoleRequestInterceptor(oauth, host, trust, key, prompt) {
45-
@Override
46-
protected String getWebIdentityToken(final OAuthTokens oauth) {
47-
return oauth.getAccessToken();
48-
}
49-
};
44+
final STSRequestInterceptor sts = new STSChainedAssumeRoleRequestInterceptor(hub, vaultId, host, trust, key, prompt);
5045
log.debug("Register interceptor {}", sts);
5146
configuration.addInterceptorLast(sts);
5247
return sts;

0 commit comments

Comments
 (0)