Example #1
0
def setup(*args, **kwargs):
    if not cfg.has_section(__name__):
        logger.error('No section for [%s] in hil.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())
Example #2
0
def setup(*args, **kwargs):
    if not cfg.has_section(__name__):
        logger.error(
            'No section for [%s] in hil.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())
Example #3
0
def setup(*args, **kwargs):
    auth.set_auth_backend(DatabaseAuthBackend())
Example #4
0
def setup(*args, **kwargs):
    """Set a DatabaseAuthBackend as the auth backend."""
    auth.set_auth_backend(DatabaseAuthBackend())
Example #5
0
def setup(*args, **kwargs):
    """Set a MockAuthBackend as the auth backend."""
    auth.set_auth_backend(MockAuthBackend())
Example #6
0
def setup(*args, **kwargs):
    """Set a DatabaseAuthBackend as the auth backend."""
    auth.set_auth_backend(DatabaseAuthBackend())
Example #7
0
File: mock.py Project: shwsun/haas
def setup(*args, **kwargs):
    auth.set_auth_backend(MockAuthBackend())
Example #8
0
File: mock.py Project: CCI-MOC/hil
def setup(*args, **kwargs):
    """Set a MockAuthBackend as the auth backend."""
    auth.set_auth_backend(MockAuthBackend())
Example #9
0
def setup(*args, **kwargs):
    auth.set_auth_backend(NullAuthBackend())
Example #10
0
def setup(*args, **kwargs):
    auth.set_auth_backend(DatabaseAuthBackend())
Example #11
0
def setup(*args, **kwargs):
    auth.set_auth_backend(MockAuthBackend())