def _init_middleware(self): """Initialize WSGI middlewarez.""" # NOTE(flaper87): Install Auth if self._conf.auth_strategy: strategy = auth.strategy(self._conf.auth_strategy) self.app = strategy.install(self.app, self._conf)
def _init_middleware(self): """Initialize WSGI middlewarez.""" # NOTE(flaper87): Install Auth if GLOBAL_CFG.auth_strategy: strategy = auth.strategy(GLOBAL_CFG.auth_strategy) self.app = strategy.install(self.app, GLOBAL_CFG)
def test_configs(self): auth.strategy('keystone')._register_opts(self.cfg) self.assertIn('keystone_authtoken', self.cfg)
def test_configs(self): auth.strategy('keystone')._register_opts(self.cfg.conf) self.assertIn('keystone_authtoken', self.cfg.conf) self.assertIn('keystone_authtoken', dir(self.cfg.from_options()))