Class HTTPClient::WWWAuth
In: lib/httpclient/auth.rb
Parent: AuthFilterBase

Authentication filter for handling authentication negotiation between Web server. Parses ‘WWW-Authentication’ header in response and generates ‘Authorization’ header in request.

Authentication filter is implemented using request filter of HTTPClient. It traps HTTP response header and maintains authentication state, and traps HTTP request header for inserting necessary authentication header.

WWWAuth has sub filters (BasicAuth, DigestAuth, NegotiateAuth and SSPINegotiateAuth) and delegates some operations to it. NegotiateAuth requires ‘ruby/ntlm’ module. SSPINegotiateAuth requires ‘win32/sspi’ module.

Methods

Attributes

basic_auth  [R] 
digest_auth  [R] 
negotiate_auth  [R] 
sspi_negotiate_auth  [R] 

Public Class methods

Public Instance methods

Filter API implementation. Traps HTTP request and insert ‘Authorization’ header if needed.

Filter API implementation. Traps HTTP response and parses ‘WWW-Authenticate’ header.

Resets challenge state. See sub filters for more details.

Set authentication credential. See sub filters for more details.

[Validate]