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)
예제 #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)