diff --git a/lib/savon/options.rb b/lib/savon/options.rb index b809692e..f9551f05 100644 --- a/lib/savon/options.rb +++ b/lib/savon/options.rb @@ -318,6 +318,7 @@ def basic_auth(*credentials) # HTTP digest auth credentials. def digest_auth(*credentials) + deprecate @options[:digest_auth] = credentials.flatten end diff --git a/lib/savon/request.rb b/lib/savon/request.rb index 8bfbdc0a..5197019e 100644 --- a/lib/savon/request.rb +++ b/lib/savon/request.rb @@ -48,7 +48,6 @@ def configure_ssl def configure_auth basic_auth if @globals.include?(:basic_auth) - digest_auth if @globals.include?(:digest_auth) ntlm_auth if @globals.include?(:ntlm) end @@ -56,13 +55,6 @@ def basic_auth connection.request(:authorization, :basic, *@globals[:basic_auth]) end - def digest_auth - require 'faraday/digestauth' - connection.request :digest, *@globals[:digest_auth] - rescue LoadError - raise LoadError, 'Using Digest Auth requests `faraday-digestauth`' - end - def ntlm_auth begin require 'rubyntlm' diff --git a/spec/integration/support/application.rb b/spec/integration/support/application.rb index 1052c169..7f261e28 100644 --- a/spec/integration/support/application.rb +++ b/spec/integration/support/application.rb @@ -63,22 +63,6 @@ def self.respond_with(options = {}) } end - map "/digest_auth" do - unprotected_app = lambda { |env| - IntegrationServer.respond_with :body => "digest-auth" - } - - realm = 'digest-realm' - app = Rack::Auth::Digest::MD5.new(unprotected_app) do |username| - username == 'admin' ? Digest::MD5.hexdigest("admin:#{realm}:secret") : nil - end - app.realm = realm - app.opaque = 'this-should-be-secret' - app.passwords_hashed = true - - run app - end - map "/multipart" do run lambda { |env| boundary = 'mimepart_boundary'