示例#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)
示例#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)
示例#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)
示例#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)
示例#5
0
 def test_configs(self):
     auth.strategy('keystone')._register_opts(self.cfg)
     self.assertIn('keystone_authtoken', self.cfg)
示例#6
0
 def test_configs(self):
     auth.strategy('keystone')._register_opts(self.cfg)
     self.assertIn('keystone_authtoken', self.cfg)
示例#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()))