

def get_backend_instance(name):
    '\n    :param name: Backend name.\n    :type name: ``str``\n    '
    try:
        manager = DriverManager(namespace=BACKENDS_NAMESPACE, name=name, invoke_on_load=False)
    except RuntimeError:
        message = ('Invalid authentication backend specified: %s' % name)
        LOG.exception(message)
        raise ValueError(message)
    backend_kwargs = cfg.CONF.auth.backend_kwargs
    if backend_kwargs:
        try:
            kwargs = json.loads(backend_kwargs)
        except ValueError as e:
            raise ValueError(('Failed to JSON parse backend settings: %s' % str(e)))
    else:
        kwargs = {
            
        }
    cls = manager.driver
    cls_instance = cls(**kwargs)
    return cls_instance

dataset/ETHPy150Open StackStorm/st2/st2auth/st2auth/backends/__init__.py get_backend_instance/original