Example #1
0
    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)
Example #2
0
    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)
Example #3
0
    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)
Example #4
0
    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)
Example #5
0
 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)
     self.assertIn('keystone_authtoken', self.cfg)
Example #7
0
 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()))