-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Amazon authentication v4 support #1128
Comments
Are you sure you are on the current github? |
If I am correct, the signing in the example and in the demo happens with v2. |
Could you submit a PR? |
I am not sure I will be able to do that. Just a suggestion that it will be more important in the future |
+1 Does not work with Frankfurt |
For those who want or need to use version 4 authentication for AWS S3 uploads, just change the data attributes given in the ng-file-upload documentation to the v4 parameters. These are the parameters you need to consider:
You don't need to get a signed url, you can use the format [YOUR_BUCKET_NAME].s3.amazonaws.com. The policy and signature parameters are to be generated on the server. A sample Php implementation of generating those can be found here. Hope that helps someone, cheers. |
@bourgeois247 Thanks, If you could create a wiki page with code sample would be great. I have already added a link to this comment in the readme but a wiki would be much better. |
@danialfarid sure, will do |
@bourgeois247 Do you have a working example with AWS V4 auth somewhere? Would greatly appreciate any pointers, haven't been successful. |
Hey guys,
On the client:
Hope that helps |
@flosky, thank you for the effort putting it together (incl. the hex encoding). |
A note to any Ruby users doing this, take note that |
@rnemec - In the credential scope string, is this the target format for use with a temporary session token:
The AWS docs aren't clear on exactly how to format with a session token - can you clarify? |
@redterror , I don't know what credential scope string is, but if you mean the string passed as 'X-Amz-Credential', the answer is NO. At least I haven't changed much @flosky 's code. To make it work with temp credentials, all I did was:
That's all. TLDR:
|
@flosky Hey I know this is old but I had a question.
Fairly new to all this so any help is appreciated |
To implement the functionality from above you only need your AWS credentials and the standard crypto lib that comes with node |
I'm trying to use this directive with Amazon Cognito. |
I'm trying to use flosky's code from above, node.js on the server & Angular upload on the front end. AWS is giving me a 500 Internal Server Error when it tries to make the upload to S3. The error message is not very informative. Does anybody see what's going on here?
Edit: I used |
I need to upload the file to elastic search attachment mapper using aws signature version 4signature. |
First of all, lots of compliments for your great job!
Would it be possible to update the version of amazon authentication to v4 and update the code example for it. At this moment, all Amazon regions support v4. However, Frankfurt is the first region that does not support v2 any more. It would be great to use this library for those buckets as well.
Cheers,
Karens
The text was updated successfully, but these errors were encountered: