Securely processing Twilio requests from Tornado

Category: Python - Miscellaneous

Twilio is a telephony service that POSTs to a callback URL on your server and asks you what to do when it receives phone calls or SMSes to the numbers you rent from Twilio. But securing your communications with Twilio can be complex if you're using Tornado behind Nginx. This shows you how to protect your Twilio callback URL with HTTP Authentication, request-signing, and (optionally) SSL.

I'm using HTTP Authentication code from Kevin Kelley, and I wrote the rest myself. Date: 09 March, 2012


Authentication - Http - Https - Nginx - Telephony - Tornado - Twilio

Homepage: http://code.activestate.com/recipes/577893-securely-processing-twilio-requests-from-tornado/?in=lang-python

Developer: Jesse Davis

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

The PHP WhoYou user authentication is a very simple but powerful script it will secure your pages restricting unauthorized users from accessing your private pages, it comes with a user login page and a logout link.

developer Developer: saita
license License: GNU General Public License (GPL)
operating systems Operating System: LINUX,UNIX,Windows,Apache


Locked Area Lite is a highly sophisticated password protection and membership/user management system written in Perl.

developer Developer: locked-area.com
license License: Freeware
operating systems Operating System: Unix, Linux, Windows, Sun Solaris


This script allows you to keep track of activities on your web site.

developer Developer: http://proxy2.de/scripts...
license License: Freeware
operating systems Operating System: Unix, Windows NT


This is a nice animated counter.

developer Developer: http://www.proxy2.de/scr...
license License: Freeware
operating systems Operating System: Unix, Linux, Win NT/2000/XP


HTAdmin is multi-platform compatible.

developer Developer: Hidayet Dogan
license License: Freeware
operating systems Operating System: Linux, Unix, Windows


Ami-Members is a PHP script to manage members access to your pages.

developer Developer: amigura.co.uk
license License: Freeware
operating systems Operating System: All


One thing most scripts need is a way for users to register, login, logout, update their information, and have their sessions managed.

developer Developer: lampwrights.com
license License: Freeware
operating systems Operating System: All


Some simple wrappers around the subprocess functions for use in system administration utilities that frequently need to interpolate trusted data into shell commands (e.

developer Developer: Nick Coghlan
license License: Freeware
operating systems Operating System: Windows


Generating a list of equally-spaced floats can surprising due to floating point rounding.

developer Developer: Steven D'Aprano
license License: Freeware
operating systems Operating System: Windows