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

Authentication filter for handling OAuth negotiation. Used in WWWAuth.

CAUTION: This impl only support ‘7 Accessing Protected Resources’ in OAuth Core 1.0 spec for now. You need to obtain Access token and Access secret by yourself.

CAUTION: This impl does NOT support OAuth Request Body Hash spec for now. oauth.googlecode.com/svn/spec/ext/body_hash/1.0/oauth-bodyhash.html

Methods

challenge   escape   get   get_config   new   reset_challenge   set   set?   set_config  

Included Modules

HTTPClient::Util

Classes and Modules

Class HTTPClient::OAuth::Config

Attributes

scheme  [R]  Authentication scheme.

Public Class methods

Creates new DigestAuth filter.

Public Instance methods

Challenge handler: remember URL for response.

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

Get authentication credential.

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

Set authentication credential. You cannot set OAuth config via WWWAuth#set_auth. Use OAuth#config=

have we marked this as set - ie that it‘s valid to use in this context?

Set authentication credential.

[Validate]