Verify your request from slack with your slack signing secret
Project description
SLACK SIGNATURE VERIFIER
Use
- pass in post request from slack and your apps signing secret
- returns whether request is valid message from slack
slack_request = {
body: "example_body",
headers: {
"X-Slack-Signature": "signature_from_slack"
"X-Slack-Request-Timestamp": "EPOCH_TIMESTAMP"
}
}
is_valid_request = verify_slack_signature(slack_request, os.envrion["SLACK_SIGNING_SECRET"])
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
File details
Details for the file slack_signature_verifier-0.7.tar.gz
.
File metadata
- Download URL: slack_signature_verifier-0.7.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552bb814dd3e854e32a623ffd683451f7cb1fe3d9740c2617bf2f7e36970205d |
|
MD5 | 9bcdeb4f54822d982afe95c629688a89 |
|
BLAKE2b-256 | a09e2ed677b6e1ef2af0b76784d8b4f1b3ff9d6d65a73126d3005163f99f5beb |