This repository was archived by the owner on Mar 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 55import logging
66import urllib
77
8+ from django .conf import settings
9+
810from curling .lib import API
911from django_statsd .clients import statsd
1012import requests
@@ -86,6 +88,8 @@ class Client(object):
8688 def __init__ (self , config = None ):
8789 self .config = self .parse (config )
8890 self .api = API (config ['server' ])
91+ self .api .activate_oauth (settings .SOLITUDE_OAUTH .get ('key' ),
92+ settings .SOLITUDE_OAUTH .get ('secret' ))
8993 self .encoder = None
9094 self .filter_encoder = urllib .urlencode
9195
Original file line number Diff line number Diff line change @@ -1486,6 +1486,9 @@ def read_only_mode(env):
14861486# The timeout we'll give solitude.
14871487SOLITUDE_TIMEOUT = 10
14881488
1489+ # The OAuth keys to connect to the solitude host specified above.
1490+ SOLITUDE_OAUTH = {'key' : '' , 'secret' : '' }
1491+
14891492# Temporary flag to work with navigator.mozPay() on devices that don't
14901493# support it natively.
14911494SIMULATE_NAV_PAY = False
Original file line number Diff line number Diff line change 111111INAPP_KEY_PATHS = private_mkt .INAPP_KEY_PATHS
112112
113113SOLITUDE_HOSTS = ('https://payments-dev.allizom.org' ,)
114+ SOLITUDE_OAUTH = {'key' : private .SOLITUDE_OAUTH_KEY ,
115+ 'secret' : private .SOLITUDE_OAUTH_SECRET }
114116
115117PAYPAL_LIMIT_PREAPPROVAL = False
116118
You can’t perform that action at this time.
0 commit comments