Warning

This document is for an in-development version 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(f"User: {user.id if options['redact_username_in_logs'] else user.email}, ALWAYSREJECT: None") return None
__all__ = ("AlwaysReject",)