Class: HTTPClient::NegotiateAuth

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

new()

Creates new NegotiateAuth filter.

### Public Instance methods

challenge(uri, param_str)

Challenge handler: remember URL and challenge token for response.

get(req)

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

reset_challenge()

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

set(uri, user, passwd)

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

[Validate]