Source code for galaxy.auth.providers.alwaysreject

"""
Created on 16/07/2014

@author: Andrew Robinson
"""

import logging

from . 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, request): """ See abstract method documentation. """ return (None, "", "")
[docs] def authenticate_user(self, user, password, options, request): """ See abstract method documentation. """ log.debug(f"User: {user.id if options['redact_username_in_logs'] else user.email}, ALWAYSREJECT: None") return None
__all__ = ("AlwaysReject",)