http_signatures/README.md

34 lines
767 B
Markdown
Raw Normal View History

2022-07-21 15:47:19 +00:00
<!--
SPDX-FileCopyrightText: 2017-2019 Pleroma Authors <https://pleroma.social/>
SPDX-License-Identifier: LGPL-3.0-only
-->
2019-05-14 16:55:11 +00:00
# HttpSignatures
**Elixir library for manipulating and validating HTTP signatures.**
## Installation
2019-05-14 19:41:00 +00:00
The package can be installed by adding `http_signatures` to your list
of dependencies in `mix.exs`:
2019-05-14 16:55:11 +00:00
```elixir
def deps do
[
{:http_signatures, "~> 0.1.0"}
]
end
```
2019-05-14 19:41:00 +00:00
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
Published at [https://hexdocs.pm/http_signatures](https://hexdocs.pm/http_signatures).