def authenticate(self, cls, auth_url):
     """Authenticate using plugin defined method."""
     raise exceptions.AuthSystemNotFound(self.auth_system)
 def authenticate(cls, auth_url):
     raise exceptions.AuthSystemNotFound(self.auth_system)
Exemplo n.º 3
0
def load_plugin(auth_system):
    try:
        plugin_class = _discovered_plugins[auth_system]
    except KeyError:
        raise exceptions.AuthSystemNotFound(auth_system)
    return plugin_class(auth_system=auth_system)