Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the aws-sign4 Reference Manual, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Aug 15 03:14:45 2022 GMT+0.
Next: Systems, Previous: The aws-sign4 Reference Manual, Up: The aws-sign4 Reference Manual [Contents][Index]
Project home: https://github.com/rotatef/aws-sign4
This library implements the Signature Version 4 Signing Process, as described here: http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
See example.lisp for an example of using Drakma to make a request to SWF.
S3 supports presigned URL. This make is possible to give a web browser temporary access to download an object directly from S3. Example:
(let ((aws-sign4:*aws-credentials*
(lambda ()
(values "AKIAIOSFODNN7EXAMPLE" "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"))))
(aws-sign4:aws-sign4 :region :eu-west-1
:service :s3
:host "s3-eu-west-1.amazonaws.com"
:path "/some-bucket/some-file"
:expires 300))
=> "https://s3-eu-west-1.amazonaws.com/some-bucket/some-file?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIOSFODNN7EXAMPLE%2F20170908%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170908T121925Z&X-Amz-Expires=300&X-Amz-SignedHeaders=host&X-Amz-Signature=42c841837976e9c206f80554b50aa879fdb3aa4f3e6f61934ce8eba436205abf
Variable
AWS-SIGN4:*AWS-CREDENTIALS*
Bind this variable to a function returning two values, the access key and the secret key.
AWS-SIGN4:AWS-SIGN4 &key ...
Calculates the signature for a http request.
Parameters:
:X-AMZ-DATE
or
:DATE
. Default :X-AMZ-DATE
.(LOCAL-TIME:NOW)
.Returns seven values. Only the two first are needed, the others are useful for debugging.
"Authorization"
header.
If expire is supplied, the presigned URL."X-Amz-Date"
or "Date"
header.Next: Files, Previous: Introduction, Up: The aws-sign4 Reference Manual [Contents][Index]
The main system appears first, followed by any subsystem dependency.
A library for Amazon Web Services signing version 4
Thomas Bakketun <thomas.bakketun@copyleft.no>
GNU Lesser General Public Licence 3.0
Next: Packages, Previous: Systems, Up: The aws-sign4 Reference Manual [Contents][Index]
Files are sorted by type and then listed depth-first from the systems components trees.
Next: aws-sign4/package.lisp, Previous: Lisp, Up: Lisp [Contents][Index]
aws-sign4 (system).
Next: aws-sign4/aws-sign4.lisp, Previous: aws-sign4/aws-sign4.asd, Up: Lisp [Contents][Index]
aws-sign4 (system).
Previous: aws-sign4/package.lisp, Up: Lisp [Contents][Index]
package.lisp (file).
aws-sign4 (system).
Next: Definitions, Previous: Files, Up: The aws-sign4 Reference Manual [Contents][Index]
Packages are listed by definition order.
common-lisp.
Next: Indexes, Previous: Packages, Up: The aws-sign4 Reference Manual [Contents][Index]
Definitions are sorted by export status, category, package, and then by lexicographic order.
Next: Internals, Previous: Definitions, Up: Definitions [Contents][Index]
Next: Ordinary functions, Previous: Public Interface, Up: Public Interface [Contents][Index]
Previous: Special variables, Up: Public Interface [Contents][Index]
Previous: Public Interface, Up: Definitions [Contents][Index]
URL-encodes a string using the external format UTF-8. If keyword parameter ESCAPE% is NIL, the % is not escaped.
Previous: Definitions, Up: The aws-sign4 Reference Manual [Contents][Index]
Jump to: | A C E F G H M S T U |
---|
Jump to: | A C E F G H M S T U |
---|
Next: Data types, Previous: Functions, Up: Indexes [Contents][Index]
Jump to: | *
S |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
* | |||
*aws-credentials* : | Public special variables | ||
| |||
S | |||
Special Variable, *aws-credentials* : | Public special variables | ||
|
Jump to: | *
S |
---|
Jump to: | A F P S |
---|
Jump to: | A F P S |
---|