Git Product home page Git Product logo

Comments (2)

uhavin avatar uhavin commented on September 16, 2024

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.

1oglop1 avatar 1oglop1 commented on September 16, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.