Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastapi-security-typeform

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastapi-security-typeform

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

fastapi-security-typeform

Security plugin for FastAPI which allows you check Typeform signature in your webhook endpoint.

How to setup signing flow for your typeform webhook

Current flow is here https://developer.typeform.com/webhooks/secure-your-webhooks/ (it's little bit a lie about working only via API)

tl;dr:

  • create a webhook via UI or API
  • generate random string (secret)
  • update a webhook via UI or API with your secret

How to use

Use pip or another package management util:

pip install fastapi-security-typeform

or

poetry add fastapi-security-typeform

or

pipenv install fastapi-security-typeform

Then initialize it with your webhook secret and pass it to endpoint as dependency.

It will raise 403 error if signature isn't valid.

from fastapi import Depends, FastAPI

from fastapi_security_typeform import SignatureHeader

app = FastAPI()
signature_header_security = SignatureHeader(secret=b'{your_secret}')

@app.post("/typeform_webhook")
def typeform_webhook(signature = Depends(signature_header_security)):
    ...
    return {"success": True}

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc