{"id":48512511,"url":"https://github.com/dev-prakhar/slack-request-permission","last_synced_at":"2026-04-07T17:33:54.788Z","repository":{"id":57468241,"uuid":"337379332","full_name":"dev-prakhar/slack-request-permission","owner":"dev-prakhar","description":"A pip package that verifies that the request is from slack app","archived":false,"fork":false,"pushed_at":"2021-02-14T16:43:22.000Z","size":11,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T15:28:09.360Z","etag":null,"topics":["django","permissions","slack"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dev-prakhar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-02-09T11:14:54.000Z","updated_at":"2022-12-14T06:37:56.000Z","dependencies_parsed_at":"2022-09-19T09:31:12.588Z","dependency_job_id":null,"html_url":"https://github.com/dev-prakhar/slack-request-permission","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dev-prakhar/slack-request-permission","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-prakhar%2Fslack-request-permission","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-prakhar%2Fslack-request-permission/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-prakhar%2Fslack-request-permission/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-prakhar%2Fslack-request-permission/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dev-prakhar","download_url":"https://codeload.github.com/dev-prakhar/slack-request-permission/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dev-prakhar%2Fslack-request-permission/sbom","scorecard":{"id":336583,"data":{"date":"2025-08-11","repo":{"name":"github.com/dev-prakhar/slack-request-permission","commit":"9014de199f055a77c8773f84c12c7bec681efb57"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/dev-prakhar/slack-request-permission/python-publish.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/dev-prakhar/slack-request-permission/python-publish.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:23","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:24","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2018-6 / GHSA-2f9x-5v75-3qv4","Warn: Project is vulnerable to: PYSEC-2019-17 / GHSA-337x-4q8g-prc5","Warn: Project is vulnerable to: PYSEC-2018-2 / GHSA-5hg3-6c2f-f3wr","Warn: Project is vulnerable to: PYSEC-2021-98 / GHSA-68w8-qjq3-2gfm","Warn: Project is vulnerable to: GHSA-6c3j-c64m-qhgq","Warn: Project is vulnerable to: GHSA-7xr5-9hcq-chf9","Warn: Project is vulnerable to: GHSA-8x94-hmjh-97hq","Warn: Project is vulnerable to: GHSA-hmr4-m2h5-33qx","Warn: Project is vulnerable to: PYSEC-2018-5 / GHSA-r28v-mw67-m5p9","Warn: Project is vulnerable to: PYSEC-2018-4 / GHSA-rf4j-j272-fj86","Warn: Project is vulnerable to: GHSA-rrqc-c2jx-6jgv","Warn: Project is vulnerable to: GHSA-vfq6-hq5r-27r6","Warn: Project is vulnerable to: PYSEC-2019-18 / GHSA-wh4h-v3f2-r2pp","Warn: Project is vulnerable to: PYSEC-2020-263 / GHSA-fx83-3ph3-9j2q","Warn: Project is vulnerable to: GHSA-gw84-84pc-xp82"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T04:52:58.495Z","repository_id":57468241,"created_at":"2025-08-18T04:52:58.495Z","updated_at":"2025-08-18T04:52:58.495Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31522469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","permissions","slack"],"created_at":"2026-04-07T17:33:54.591Z","updated_at":"2026-04-07T17:33:54.736Z","avatar_url":"https://github.com/dev-prakhar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Slack Request Permission\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![Python 3.7](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-370/)\n[![Django](https://img.shields.io/badge/Django-3.1.6-green.svg)](https://shields.io/)\n\n### Installation\n* Compatibility\n```\nPython Version \u003e 3.5\nDjango Version \u003e 2.0\n```\n* Install using\n```bash\npip install slack-request-permission\n```\n\n### Introduction\n\nEvery slack app that needs to interact with any server needs to be verified (verify if the sender is actually slack).\n\nThis package offers you:\n\n* [Out-of-the-box `Django` permission class that can be used to authenticate slack requests](#out-of-the-box)\n* [Framework for creating your own permission class for any slack app](#framework)\n* [A standalone method to verify slack request](#standalone-method)\n\n### Out-of-the-box\n\nTo use out of the box permission class, all you have to do is add the class into permission classes of\n[Django Rest Framework](https://www.django-rest-framework.org/tutorial/3-class-based-views/).\n\n```python\nclass RandomSlackRequestView(APIView):\n    permission_classes = (IsSlackAppRequest,)\n```\n\n`In settings.py`\n\n```python\nSLACK_APP_VERSION = 'v0'\nSLACK_APP_SIGNING_SECRET = {YOUR_SLACK_APP_SIGNING_SECRET}\n```\n\nThe view will verify that the incoming request is from slack before running anything.\n\n### Framework\n\nThere might come a use case where you have different slack apps with different `signing_secrets` interacting with your\nbackend. In that case, you can create your own custom permission class\n\n```python\nfrom slack_request_validator.abstract_permission import AbstractIsSlackAppRequest\n\nclass MySlackApp1Permission(AbstractIsSlackAppRequest):\n    SLACK_APP_VERSION = 'v0'\n    SLACK_APP_SIGNING_SECRET = {MySlackApp1_SIGNING_SECRET}\n\n\nclass MySlackApp2Permission(AbstractIsSlackAppRequest):\n    SLACK_APP_VERSION = 'v0'\n    SLACK_APP_SIGNING_SECRET = {MySlackApp2_SIGNING_SECRET}\n```\n\nThese permissions can be then used inside any Django Rest Framework's View\n\n\n```python\nclass MySlackApp1View(APIView):\n    permission_classes = (MySlackApp1Permission,)\n\n\nclass MySlackApp2View(APIView):\n    permission_classes = (MySlackApp2Permission,)\n```\n\n### Standalone-Method\nThere might be cases when you don't want to use permission classes.\nYou can directly use the method that verifies slack request\n\nThis method `returns` either `True` or `False`\n```python\nTrue # If slack request is correct\nFalse # If slack request is incorrect\n```\n\n```python\nfrom slack_request_validator.utils import verify_slack_request\n\nslack_version = 'v0'\nslack_app_signing_secret = {YOUR_SLACK_APP_SIGNING_SECRET}\nverify_slack_request(request=request, slack_app_version=slack_version, slack_app_signing_secret=slack_app_signing_secret)\n```\n***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-prakhar%2Fslack-request-permission","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdev-prakhar%2Fslack-request-permission","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdev-prakhar%2Fslack-request-permission/lists"}