Did I find the right examples for you? yes no

All Samples(17)  |  Call(15)  |  Derive(2)  |  Import(0)

src/m/a/marconi-HEAD/marconi/queues/transport/auth.py   marconi(Download)
        cls._register_opts(conf)
        conf = dict(conf.get(cls.OPT_GROUP_NAME))
        return auth_token.AuthProtocol(app, conf=conf)
 
 

src/c/l/climate-HEAD/climate/api/v2/app.py   climate(Download)
        CONF.register_opts(auth_token.opts, group=OPT_GROUP_NAME)
        keystone_config = dict(CONF.get(OPT_GROUP_NAME))
        app = auth_token.AuthProtocol(app, conf=keystone_config)
 
    return app

src/k/w/kwapi-HEAD/kwapi/plugins/api/acl.py   kwapi(Download)
def install(app, conf):
    """Installs ACL check on application."""
    app.wsgi_app = auth_token.AuthProtocol(app.wsgi_app,
                                           conf=dict(conf.get(OPT_GROUP_NAME)))
    app.before_request(check)

src/m/i/mistral-0.0.2/mistral/api/access_control.py   mistral(Download)
def setup(app):
    if cfg.CONF.pecan.auth_enable:
        return auth_token.AuthProtocol(app, conf=dict(cfg.CONF.keystone))
    else:
        return app

src/r/i/ripcord-0.0.1/ripcord/api/acl.py   ripcord(Download)
def install(app, conf):
    """Install ACL check on application."""
    return auth_token.AuthProtocol(app,
                                   conf=dict(conf.get(OPT_GROUP_NAME)))
 

src/t/u/tuskar-0.4.1/tuskar/api/acl.py   tuskar(Download)
def install(app, conf):
    """Install ACL check on application."""
    register_opts(cfg.CONF)
    return auth_token.AuthProtocol(app,
                                   conf=dict(conf.get(OPT_GROUP_NAME)))

src/t/u/tuskar-HEAD/tuskar/api/acl.py   tuskar(Download)
def install(app, conf):
    """Install ACL check on application."""
    return auth_token.AuthProtocol(app,
                                   conf=dict(conf.get(OPT_GROUP_NAME)))
 

src/i/r/ironic-HEAD/ironic/api/middleware/auth_token.py   ironic(Download)
class AuthTokenMiddleware(auth_token.AuthProtocol):
    """A wrapper on Keystone auth_token middleware.
 
    Does not perform verification of authentication tokens
    for public routes in the API.

src/s/o/solum-HEAD/solum/api/auth.py   solum(Download)
class AuthProtocolWrapper(auth_token.AuthProtocol):
    """A wrapper on Keystone auth_token AuthProtocol.
 
    Does not perform verification of authentication tokens for pub routes in
    the API. Public routes are those which Uri starts with

src/c/e/ceilometer-HEAD/ceilometer/tests/api/v1/test_app.py   ceilometer(Download)
        api_app = app.make_app(self.CONF, attach_storage=False)
        conf = dict(self.CONF.get(acl.OPT_GROUP_NAME))
        api_app = auth_token.AuthProtocol(api_app,
                                          conf=conf)
        self.assertTrue(api_app.auth_uri.startswith('file'))
        api_app = app.make_app(self.CONF, attach_storage=False)
        conf = dict(self.CONF.get(acl.OPT_GROUP_NAME))
        api_app = auth_token.AuthProtocol(api_app,
                                          conf=conf)
        self.assertTrue(api_app.auth_uri.startswith('file'))

  1 | 2  Next