Comments (2)
Hi @1oglop1
Thanks for using Slackers. The 403 would occur if the header you are passing does not get verified correctly. For it to pass, you'd have to create a valid signature/timestamp combination. Slack itself explains how signatures get calculated: [docs]. You can create one on the fly in your test, or alternatively, you can calculate one manually and use the resulting string in your test. You should then use something like freeze_gun to have a fixed time in your test. Don't use real secrets, you can fake one as long as your secret in the test environment is the same as you are using to create the signature with.
Please let me know if this is helpful. I have some more time later today, when I can look into it more deeply for you.
from slackers.
@uhavin Thanks for the prompt response,
I realised that I should explore slackers tests and borrowed fixtures with headers and patched verification.
BTW If you are interested to share any kind of your python story check our community at https://py.amsterdam.
from slackers.
Related Issues (12)
- Slash command has no Pydantic model
- 422 Unprocessable Entity for app_home_opened HOT 5
- [BUG] Interactive messages don't have 'action_id' HOT 4
- Receiving actions by callback_id HOT 2
- 500 Error when Trying to Verify Slack App HOT 2
- Add tests for valid signatures
- custom response HOT 2
- Actions seems to not be called
- Slack verification to include timestamps
- Message builder .blocks formatter HOT 2
- Input validation for view_submission actions HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slackers.