While I was reading about interaction with Amazon S3
, I came to know that request authentication with Amazon AWS
is done in 2 ways
- HTTP Authorization: Using the HTTP Authorization header is the most common method of providing authentication information
- Query string parameters: Using query parameters to authenticate requests is useful when you want to express a request entirely in a URL. This method is also referred as presigning a URL.
The question is in which situation should I prefer one method over the other. Do these two authentication methods have their own advantages and disadvantages? As a developer, by using query string parameters
method I can presign the URL which enables the end users to temporarily access the Amazon S3
resources by entering the presigned URL in the web browser. Can I use HTTP Authorization
method to achieve the same thing? If so which method is better to use and what are their respective limitations?