Skip to content

Validate a Callback Request event from Sinch Verification using python3

Notifications You must be signed in to change notification settings

vcatalin/python-validate-verification-callback-request

Repository files navigation

Validate Callback Request event from Sinch Verification using python3

This project validates a Verification Event callback received from the Sinch platform when using the Sinch Verification product with callbacks enabled.

Requirements

Install

  • ensure that pipenv is installed, if not run pip install pipenv
  • start a virtual environment by running pipenv ENV in the current directory
  • install all the required dependencies by running pipenv install
  • replace the required values in the ./app.py file
  • run the server using flask run --port 8000
  • start ngrok ngrok http 8000
    • copy the ngrok url to the Verification App that you will receive Verification Events from to your Sinch Dashboard
    • make sure to append the following URI at the end of the URL, /api/verification/events
    • example https://df6a-143-177-206-33.ngrok.io/api/verification/events
  • test using the SMS PIN Verification script found in the project
    • replace the required values in the ./test-sms-verification-signed-request.py file
    • python3 test-sms-verification-signed-request.py
    • the alternative is to use the other script file that makes a request using basic-auth, python3 test-sms-verification-basic-auth.py

About

Validate a Callback Request event from Sinch Verification using python3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy