-
Notifications
You must be signed in to change notification settings - Fork 202
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate-presigned-url generating old signatures #307
Comments
What is the error you're seeing? Do you have an actual function invocation to post? Any relevant details? As is, this bug report is not of much use. |
There's more information in here: |
The error I get when I try to use the generated URL is: <Error>
<Code>InvalidRequest</Code>
<Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message>
<RequestId>79..4A</RequestId>
<HostId>rI...0=</HostId>
</Error> |
post your code |
(amazonica.aws.s3/generate-presigned-url "bucket-name"
"key-name"
(-> 24 t/hours t/from-now)
"PUT") |
can't reproduce. try setting system property amazonica just delegates to the Java SDK, so default signature version is V4 |
I tried setting that and it made no change. The example on Amazon's web
page doesn't require that and generates the V4 signature.
…On 7 May 2017 at 18:43, Michael Cohen ***@***.***> wrote:
can't reproduce. try setting system property
System.setProperty(SDKGlobalConfiguration.ENFORCE_S3_SIGV4_SYSTEM_PROPERTY,
"true")
amazonica just delegates to the Java SDK, so default signature version is
V4
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#307 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAg6RYCfX5fzt2NW0TH-r4MzW_BWRksks5r3gLTgaJpZM4NTCu2>
.
--
J. Pablo Fernández <pupeno@pupeno.com> (http://pupeno.com)
|
|
I understand the code in the last comment but I'm not sure what you mean by it. I'm sorry. |
this is essentially the Java code that will be called when you call |
I tried to use com.amazonaws.services.s3/generate-presigned-url but it was generating version 2 signatures which didn't work:
http://stackoverflow.com/questions/43823546/when-trying-to-access-an-s3-signed-url-the-authorization-mechanism-not-supporte
The code in this example with the same credentials worked:
http://docs.aws.amazon.com/AmazonS3/latest/dev/PresignedUrlUploadObjectJavaSDK.html
The text was updated successfully, but these errors were encountered: