public
Description: An HTTP proxy for signing OAuth requests
Clone URL: git://github.com/mojodna/oauth-proxy.git
Search Repo:
mojodna (author)
Sat Apr 26 09:14:14 -0700 2008
commit  b9dd4c2af345550bf2e1a30f1332347fe25da7ae
tree    d48d06b78511e1c6a4de84b2b0c05de01d70fc21
parent  af8e6f438db8b84c67da9acf0c8f2557abfd9b7e
name age message
folder .gitignore Tue Apr 22 18:09:44 -0700 2008 refactored to allow it to run from twistd directly [mojodna]
folder README Sat Apr 26 09:09:52 -0700 2008 skeleton for a reverse proxy [mojodna]
folder TODO Tue Apr 22 18:09:44 -0700 2008 refactored to allow it to run from twistd directly [mojodna]
folder oauth/ Mon Apr 21 18:08:39 -0700 2008 removed pycs [mojodna]
folder oauth_proxy/ Sat Apr 26 09:14:14 -0700 2008 prevent name conflicts [mojodna]
folder twisted/ Sat Apr 26 09:14:14 -0700 2008 prevent name conflicts [mojodna]
README
This is an OAuth proxy.  It allows vanilla requests to be funneled through it and signed
appropriately using OAuth.  For now, it only uses a single, pre-set access token.

A skeleton also exists for a reverse proxy.  No OAuth signature validation is done yet, so go for it!

To create an OAuth proxy server:
mktap oauth_proxy --consumer-key <consumer key> --consumer-secret <consumer secret> [--token <token>] [--token-secret 
<token secret>] [-p <proxy port>] [--ssl]

Start the generated tap (in the foreground):
twistd -nf oauth_proxy.tap

(For mktap to find oauth_proxy, you may need to make sure that "." is in your PYTHONPATH)

Or, just run it with twistd:
twistd -n oauth_proxy --consumer-key <consumer key> --consumer-secret <consumer secret> [--token <token>] 
[--token-secret <token secret>] [-p <proxy port>] [--ssl]