Class: HTTPClient::BasicAuth

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

Authentication filter for handling BasicAuth negotiation. Used in WWWAuth and ProxyAuth.

### Methods

challenge get new reset_challenge set

### Attributes

scheme | [R] | Authentication scheme.

### Public Class methods

new()

Creates new BasicAuth filter.

### Public Instance methods

challenge(uri, param_str)

Challenge handler: remember URL for response.

get(req)

Response handler: returns credential. It sends cred only when a given uri is;

- child page of challengeable(got *Authenticate before) uri and,
- child page of defined credential

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]