gaul commented on a change in pull request #43: JCLOUDS-1511: allow configuration of S3 to use V4 signatures URL: https://github.com/apache/jclouds/pull/43#discussion_r319212250
########## File path: apis/s3/src/main/java/org/jclouds/s3/config/S3HttpApiModule.java ########## @@ -183,8 +184,11 @@ protected void bindErrorHandlers() { bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ParseS3ErrorFromXmlContent.class); } - protected void bindRequestSigner() { - bind(RequestAuthorizeSignature.class).to(RequestAuthorizeSignatureV2.class).in(Scopes.SINGLETON); + @Provides + @Singleton + protected RequestAuthorizeSignature bindRequestSigner( + @Named(S3Constants.PROPERTY_S3_V4_REQUEST_SIGNATURES) boolean v4Signatures, Injector injector) { + return injector.getInstance(v4Signatures ? RequestAuthorizeSignatureV4.class : RequestAuthorizeSignatureV2.class); Review comment: Should `S3BlobStoreContextModule` also conditionally bind a v2 or v4 signer? This looks like it would require reparenting `AWSS3BlobRequestSignerV4`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services