Skip to content
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

clean up auth and allow specifying request parameters #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lukfugl
Copy link

@lukfugl lukfugl commented Oct 21, 2011

See commit messages for details. Out immediate use case is being able to specify response-content-disposition when generating our S3 GET urls. I noticed the auth deficiencies while adding that.

see

http://docs.amazonwebservices.com/AmazonS3/latest/dev/index.html?RESTAuthentication.html#ConstructingTheCanonicalizedResourceElement

the calculation of the canonicalized resource was not quite right. the
problems were:

 * only one significant parameter (the first) was included
 * values of significant parameters were excluded
 * not all significant parameters were considered
see

http://docs.amazonwebservices.com/AmazonS3/latest/API/index.html?RESTObjectGET.html

the response-content-type, response-content-language, response-expires,
response-cache-control, response-content-disposition, and
response-content-encoding request parameters can be supplied to control
the response headers of an S3 GET request. allow providing these to
S3Object.url_for and have them included in the URL. bring along the
other recognized parameters as well, while we're at it.

also, make sure these parameters make it into the canonicalized request
for authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant