public
Description: An HTTP proxy for signing OAuth requests
Clone URL: git://github.com/mojodna/oauth-proxy.git
k, so it did have to be a MultiService
mojodna (author)
Tue Apr 22 17:13:47 -0700 2008
commit  a284abebc6527950cff9cdb64814a41a2163f780
tree    1494983938f3910732624ae33170219421af5b89
parent  4b927701bf2455b0dab1e67a2f1a0b46ae850408
...
17
18
19
20
 
21
22
23
...
32
33
34
 
35
36
37
 
 
38
39
 
...
17
18
19
 
20
21
22
23
...
32
33
34
35
36
 
 
37
38
39
 
40
0
@@ -17,7 +17,7 @@ class Options(usage.Options):
0
   optFlags = [['ssl', 's']]
0
 
0
 def makeService(config):
0
- app = service.Application("oauth_proxy")
0
+ s = service.MultiService()
0
 
0
   useSSL = config["ssl"]
0
 
0
@@ -32,8 +32,9 @@ def makeService(config):
0
   port = config["port"]
0
 
0
   credentials = oauth_proxy.OAuthCredentials(consumerKey, consumerSecret, token, tokenSecret)
0
+ credentialProvider = oauth_proxy.StaticOAuthCredentialProvider(credentials)
0
 
0
- proxy = internet.TCPServer(port, oauth_proxy.OAuthProxyFactory(credentials, useSSL))
0
- proxy.setServiceParent(app)
0
+ proxy = internet.TCPServer(port, oauth_proxy.OAuthProxyFactory(credentialProvider, useSSL))
0
+ proxy.setServiceParent(s)
0
 
0
- return app
0
+ return s

Comments

    No one has commented yet.