Skip to main content

Verify signed HTTP requests from Manifold.

Project description

# python-manifoldco-signature

Verify signed HTTP requests from Manifold

[Code of Conduct](./.github/CONDUCT.md) |
[Contribution Guidelines](./.github/CONTRIBUTING.md)

[![GitHub release](https://img.shields.io/github/tag/manifoldco/python-manifoldco-signature.svg?label=latest)](https://github.com/manifoldco/python-manifoldco-signature/releases)
[![Travis](https://img.shields.io/travis/manifoldco/python-manifoldco-signature/master.svg)](https://travis-ci.org/manifoldco/python-manifoldco-signature)
[![License](https://img.shields.io/badge/license-BSD-blue.svg)](./LICENSE.md)

## Install

```
pip install manifoldco-signature
```

## Usage

`manifoldco_signature` is built to be used with any HTTP handling framework.
As such, you'll need to manually pass in request data in the format the
`Verifier` expects.

In particular, header names must be lowercased and hyphen delimited.

If you're using a specific HTTP framework and would like native support for it
included in this library, file an issue and let us know!

```python
import manifoldco_signature as signature


verifier = signature.Verifier()

valid = verifier.Verify('PUT', '/v1/resources', {}, {'host': 'yourdomain.com'}, 'request body')
if not valid:
# return unauthorized
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manifoldco_signature-0.2.1.tar.gz (20.0 kB view details)

Uploaded Source

File details

Details for the file manifoldco_signature-0.2.1.tar.gz.

File metadata

File hashes

Hashes for manifoldco_signature-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ea3d9b54e90e4df53a7db401758f31c0f550cb0de660f9f347f4017e047c7d6a
MD5 47cca5d8603d7ca00962489040bf45ed
BLAKE2b-256 dc4ba66372f4377943cef7c47fc4c391ea4498980a8d45199865fba06ca3aaeb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page