@ -6,6 +6,11 @@ module OpenProject
# This strategy is inserted after optional basic auth strategies to
# indicate that invalid basic auth credentials were provided.
class BasicAuthFailure < ::Warden::Strategies::BasicAuth
def valid?
OpenProject::Configuration.apiv3_enable_basic_auth? && super
end
def authenticate_user(_username, _password)
nil # always fails