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)
[](https://github.com/manifoldco/python-manifoldco-signature/releases)
[](https://travis-ci.org/manifoldco/python-manifoldco-signature)
[](./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
```
Verify signed HTTP requests from Manifold
[Code of Conduct](./.github/CONDUCT.md) |
[Contribution Guidelines](./.github/CONTRIBUTING.md)
[](https://github.com/manifoldco/python-manifoldco-signature/releases)
[](https://travis-ci.org/manifoldco/python-manifoldco-signature)
[](./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.1.0.tar.gz
(19.9 kB
view hashes)
Close
Hashes for manifoldco_signature-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95ef45ff5802a1a70aad63d3f745754e93b022078f10db7ee30f793752990eee |
|
MD5 | 257ee4436fa0c48bf6f53a3640196e52 |
|
BLAKE2b-256 | 612b0f479eb272cb9c5d0c780022ac915cf0dc6e4a6d6c4bab6d9362a787d494 |