Skip to content

(WIP) Signature Version 4 library written in Gleam

Notifications You must be signed in to change notification settings

ffigiel/gleam_sigv4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sigv4

(WIP) Signature Version 4 library written in Gleam

Usage

import gleam/http/request
import sigv4

let params = sigv4.Params(
  debug: False,
  signed_headers: ["Host", "X-Amz-Content-Sha256", "X-Amz-Date"],
  datetime: universaltime(),
  region: "us-east-1",
  service: "s3",
  access_key: "...",
  secret_key: "...",
)
let req =
  request.new()
  |> // build your request...
  |> sigv4.sign_request(params)
// you now have a signed request!

Development

To run tests

docker-compose up
gleam test

About

(WIP) Signature Version 4 library written in Gleam

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages