Class OpenID::Server::CheckAuthRequest
In: lib/openid/server.rb
Parent: OpenIDRequest

A request to verify the validity of a previous response.

Methods

answer   from_query   new  

Attributes

assoc_handle  [RW] 
invalidate_handle  [RW] 
sig  [RW] 
signed  [RW] 

Public Class methods

Produce a CheckAuthRequest instance from the request query. Raises a ProtocolError if the request is malformed, and returns an instance CheckAuthRequest on success.

Create a new CheckAuthRequest. Please see the CheckAuthRequest.from_query class method, as it is the preferred way to produce this object.

Parameters

assoc_handle
String value of the "openid.assoc_handle" from the incoming request
sig
String signature for the request. This is "openid.sig"
signed
An array of pairs of [key, value], where key is the signed paramter name without the "openid." prefix. Value is the String value of of the paramter.
invalidate_handle
Optional. The association handle that the consumer is asking about the validity of. May be nil.

Public Instance methods

Respond to this request. Given an OpenID::Server::Signatory instance the validity of the signature and invalidate_handle can be checked.

Returns an OpenIDResponse object with an appropriate "is_valid" field and an "invalidate_handle" field if appropriate.

[Validate]