Commit 82cfb694 authored by godog's avatar godog
Browse files

let machdb client handle all defaults

parent 9882453c
...@@ -10,8 +10,6 @@ from sso_server.auth import AuthBase ...@@ -10,8 +10,6 @@ from sso_server.auth import AuthBase
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
MACHDB_URL = os.getenv('MACHDB_URL', 'https://machdb.investici.org:3000')
class Updater(threading.Thread): class Updater(threading.Thread):
...@@ -49,7 +47,7 @@ class Auth(AuthBase): ...@@ -49,7 +47,7 @@ class Auth(AuthBase):
logging.getLogger('pyactiveresource').setLevel(logging.ERROR) logging.getLogger('pyactiveresource').setLevel(logging.ERROR)
# Setup MachDB. # Setup MachDB.
mdb.init(MACHDB_URL) mdb.init()
self.auth_cache = {'pwcache': {}, 'grpcache': {}, 'otpcache': {}} self.auth_cache = {'pwcache': {}, 'grpcache': {}, 'otpcache': {}}
updater = Updater(self.auth_cache) updater = Updater(self.auth_cache)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment