File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 8
8
a [Cognitect AWS API][2] client or a map with the following structure:
9
9
10
10
{:credentials #:aws{:access-key-id \" some-access-key\"
11
- :secret-access-key \" wild_secr3t\"
12
- :session-token \" FwoG...\" }
11
+ :secret-access-key \" wild_secr3t\"
12
+ :session-token \" FwoG...\" }
13
13
:region \" us-east-1\"
14
14
:endpoint {:protocol :https
15
15
:hostname \" s3.amazonaws.com\" }}
114
114
115
115
(defn signature
116
116
" AWS specification: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
117
+
117
118
Inspired by https://gist.github.com/souenzzo/21f3e81b899ba3f04d5f8858b4ecc2e9"
118
119
[credentials canonical-url {:keys [scope method timestamp region service query-params content-sha256 signed-headers]}]
119
120
(let [encoded-url (uri-encode url-unreserved-chars canonical-url)
You can’t perform that action at this time.
0 commit comments