Class HTTPClient::NegotiateAuth
In: lib/httpclient/auth.rb
Parent: Object

Authentication filter for handling Negotiate/NTLM negotiation. Used in WWWAuth and ProxyAuth.

NegotiateAuth depends on ‘ruby/ntlm’ module.

Methods

challenge   get   new   reset_challenge   set  

Attributes

ntlm_opt  [R]  NTLM opt for ruby/ntlm. {:ntlmv2 => true} by default.
scheme  [R]  Authentication scheme.

Public Class methods

Creates new NegotiateAuth filter.

Public Instance methods

Challenge handler: remember URL and challenge token for response.

Response handler: returns credential. See ruby/ntlm for negotiation state transition.

Resets challenge state. Do not send ’*Authorization’ header until the server sends ’*Authentication’ again.

Set authentication credential. uri == nil for generic purpose (allow to use user/password for any URL).

[Validate]