public
Description: An HTTP proxy for signing OAuth requests
Clone URL: git://github.com/mojodna/oauth-proxy.git
Search Repo:
mojodna (author)
Sun May 11 08:55:12 -0700 2008
commit  2eaf3aea5cb9f5b802892601a5b8630364943007
tree    ff7096124735a32f32d7795491904ddea9583aeb
parent  4c8a589db43ae8d3b3a88a90931e09aac4183480
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.markdown Sun May 11 08:55:12 -0700 2008 doc cleanup [mojodna]
folder oauth/ Mon Apr 21 18:08:39 -0700 2008 removed pycs [mojodna]
folder oauth_proxy/ Sun May 11 08:55:12 -0700 2008 doc cleanup [mojodna]
folder twisted/ Sun May 11 08:55:12 -0700 2008 doc cleanup [mojodna]
README.markdown

OAuth Reverse Proxy

I am an OAuth proxy server. You can pass unsigned requests to me and I will sign them using OAuth before sending them to their eventual destination.

At the moment, tokens and consumer keys are configurable only at start-time, so individual proxies are limited to a single pair at a time.

Running

Provided that "." is in your PYTHONPATH, you should be able to run the proxy with twistd:

twistd -n oauth_proxy --consumer-key  --consumer-secret  [--token ] [--token-secret ] [-p ] [--ssl]

Running as a daemon

You may run the proxy with twistd directly (omitting the _-n_ argument) or you may generate a pre-configured tap, which can then be packaged and distributed. To generate a tap:

mktap oauth_proxy --consumer-key  --consumer-secret  [--token ] [--token-secret ] [-p ] [--ssl]

To run the tap (using the settings that were provided when creating it):

twistd -f oauth_proxy.tap