lib/httpi/auth/config.rb in httpi-0.9.4 vs lib/httpi/auth/config.rb in httpi-0.9.5
- old
+ new
@@ -8,11 +8,11 @@
# Manages HTTP and SSL auth configuration. Currently supports HTTP basic/digest
# and SSL client authentication.
class Config
# Supported authentication types.
- TYPES = [:basic, :digest, :ssl, :ntlm]
+ TYPES = [:basic, :digest, :ssl]
# Accessor for the HTTP basic auth credentials.
def basic(*args)
return @basic if args.empty?
@@ -41,20 +41,17 @@
# Returns whether to use HTTP basic or dihest auth.
def http?
type == :basic || type == :digest
end
- # Accessor for the NTLM auth credentials.
+ # Only available with the httpi-ntlm gem.
def ntlm(*args)
- return @ntlm if args.empty?
-
- self.type = :ntlm
- @ntlm = args.flatten.compact
+ raise "Install the httpi-ntlm gem for experimental NTLM support"
end
- # Returns whether to use NTLM auth.
+ # Only available with the httpi-ntlm gem.
def ntlm?
- type == :ntlm
+ raise "Install the httpi-ntlm gem for experimental NTLM support"
end
# Returns the <tt>HTTPI::Auth::SSL</tt> object.
def ssl
@ssl ||= SSL.new