A Flask view decorator to verify Github's webhook signatures
Project description
flask-github-signature
A Flask view decorator to verify Github's webhook signatures.
Usage
export GH_WEBHOOK_SECRET="xyz"
from flask import Flask
from flask_github_signature import verify_signature
app = Flask(__name__)
@app.route("/", methods=["GET", "POST"])
@verify_signature
def hello_world():
return "Hello, World!"
Testing
If you want to test, play or contribute to this repo:
git clone git@github.com:pabluk/flask-github-signature.git
cd flask-github-signature/
pip install -r requirements.txt
pip install -e .
python -m unittest tests/test_main.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for flask-github-signature-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 170a7a6d4274606fcdccdb28da76a6102ce3b6c00491594aa44bf5f68c409d9c |
|
MD5 | b0965516eb54c69829dc14d7ee6bde8b |
|
BLAKE2b-256 | c994318405b40017297364d0248417ae9a080705d57697074403dba8e8b03efd |
Close
Hashes for flask_github_signature-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5439d49d0a56d66a96d7d6553d27806ef792104328fdfca804a7fc5c5c73750 |
|
MD5 | 35aeb4c876e655576748ece1ad63697c |
|
BLAKE2b-256 | 090b41250727691d544fc0615648b52882e83c1bf8f983483b4771a538e8fbbb |