예제 #1
0
파일: keystone.py 프로젝트: henn/hil
def setup(*args, **kwargs):
    if not cfg.has_section(__name__):
        logger.error('No section for [%s] in haas.cfg; authentication will '
                     'not work without this. Please add this section and try '
                     'again.', __name__)
        sys.exit(1)
    keystone_cfg = {}
    for key in cfg.options(__name__):
        keystone_cfg[key] = cfg.get(__name__, key)

    # Great job with the API design Openstack! </sarcasm>
    factory = filter_factory(keystone_cfg)
    app.wsgi_app = factory(app.wsgi_app)

    auth.set_auth_backend(KeystoneAuthBackend())
예제 #2
0
def setup(*args, **kwargs):
    if not cfg.has_section(__name__):
        logger.error(
            'No section for [%s] in haas.cfg; authentication will '
            'not work without this. Please add this section and try '
            'again.', __name__)
        sys.exit(1)
    keystone_cfg = {}
    for key in cfg.options(__name__):
        keystone_cfg[key] = cfg.get(__name__, key)

    # Great job with the API design Openstack! </sarcasm>
    factory = filter_factory(keystone_cfg)
    app.wsgi_app = factory(app.wsgi_app)

    auth.set_auth_backend(KeystoneAuthBackend())
예제 #3
0
파일: mock.py 프로젝트: starbops/haas
def setup(*args, **kwargs):
    auth.set_auth_backend(MockAuthBackend())
예제 #4
0
def setup(*args, **kwargs):
    auth.set_auth_backend(DatabaseAuthBackend())
예제 #5
0
파일: mock.py 프로젝트: sarthakjagetia/hil
def setup(*args, **kwargs):
    auth.set_auth_backend(MockAuthBackend())
예제 #6
0
파일: null.py 프로젝트: starbops/haas
def setup(*args, **kwargs):
    auth.set_auth_backend(NullAuthBackend())
예제 #7
0
def setup(*args, **kwargs):
    auth.set_auth_backend(NullAuthBackend())