Warning

This document is for an old release of Galaxy. You can alternatively view this page in the latest release if it exists or view the top of the latest release's documentation.

Source code for galaxy.auth.providers.alwaysreject

"""
Created on 16/07/2014

@author: Andrew Robinson
"""
import logging

from ..providers import AuthProvider

log = logging.getLogger(__name__)


[docs]class AlwaysReject(AuthProvider): """A simple authenticator that just accepts users (does not care about their password). """ plugin_type = 'alwaysreject'
[docs] def authenticate(self, email, username, password, options): """ See abstract method documentation. """ return (None, '', '')
[docs] def authenticate_user(self, user, password, options): """ See abstract method documentation. """ log.debug("User: %s, ALWAYSREJECT: None" % (user.email)) return None
__all__ = ('AlwaysReject', )