No description
Find a file
2026-05-04 18:57:11 +00:00
.reuse Make repository REUSE compliant 2022-07-21 17:47:19 +02:00
config Actually check signature metadata 2025-02-21 21:43:18 +01:00
lib/http_signatures remove old atom check 2026-05-04 19:56:25 +01:00
LICENSES Make repository REUSE compliant 2022-07-21 17:47:19 +02:00
test remove old atom check 2026-05-04 19:56:25 +01:00
.credo.exs Make repository REUSE compliant 2022-07-21 17:47:19 +02:00
.formatter.exs Make repository REUSE compliant 2022-07-21 17:47:19 +02:00
.gitignore .gitignore: mix.lock 2023-12-21 22:42:16 +01:00
.tool-versions Update version, tool versions 2024-06-12 18:20:28 +01:00
mix.exs correct typo, upgrade deps 2026-04-30 16:28:33 +01:00
mix.lock correct typo, upgrade deps 2026-04-30 16:28:33 +01:00
README.md Bump Version 2025-02-21 21:43:18 +01:00

HttpSignatures

Elixir library for manipulating and validating HTTP signatures.

Installation

This package is a fork of Pleromas http_signatures and not on hexpm. To use the package add the git repo to your list of dependencies in mix.exs:

def deps do
  [
    {:http_signatures,
     git: "https://thisrepo.example/http_signature.git",
     tag: "v1.1.0"}
  ]
end

You will need to write an adapter module that compiles with the HTTPSignatures.Adapter behaviour. This is used to fetch the public keys when verifying signatures. The adapter is configured like so:

config :http_signatures, adapter: YourAdapter

Documentation

To get API docs, search for docstring in lib/http_signatures.

Config Optioons

config :http_signatures,
  adapter: YourAdapter, # see above
  max_sig_age: 7200,    # maximum age in seconds before a signature will be forcibly rejected
  max_clock_skew: 2400   # maximum offset in seconds for accepting future creation dates