Package openid :: Package server :: Module server :: Class CheckAuthRequest
[frames | no frames]

Type CheckAuthRequest

   object --+    
            |    
OpenIDRequest --+
                |
               CheckAuthRequest


A request to verify the validity of a previous response.

See Also: OpenID Specs, Mode: check_authentication

Method Summary
  __init__(self, assoc_handle, sig, signed, invalidate_handle)
Construct me.
  __str__(self)
OpenIDResponse answer(self, signatory)
Respond to this request.
CheckAuthRequest fromQuery(klass, query)
Construct me from a web query. (Class method)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Instance Variable Summary
str assoc_handle: The association handle the response was signed with.
str invalidate_handle: An association handle the client is asking about the validity of.
str sig: The signature to check.
list of pairs signed: The ordered list of signed items you want to check.

Class Variable Summary
str mode: "check_authentication"

Instance Method Details

__init__(self, assoc_handle, sig, signed, invalidate_handle=None)
(Constructor)

Construct me.

These parameters are assigned directly as class attributes, see my class documentation for their descriptions.
Parameters:
assoc_handle
           (type=str)
sig
           (type=str)
signed
           (type=list of pairs)
invalidate_handle
           (type=str)
Overrides:
__builtin__.object.__init__

answer(self, signatory)

Respond to this request.

Given a Signatory, I can check the validity of the signature and the invalidate_handle.
Parameters:
signatory - The Signatory to use to check the signature.
           (type=Signatory)
Returns:
A response with an is_valid (and, if appropriate invalidate_handle) field.
           (type=OpenIDResponse)

Class Method Details

fromQuery(klass, query)

Construct me from a web query.
Parameters:
query - The query parameters as a dictionary with each key mapping to one value.
           (type=dict)
Returns:
CheckAuthRequest

Instance Variable Details

assoc_handle

The association handle the response was signed with.
Type:
str

invalidate_handle

An association handle the client is asking about the validity of. Optional, may be None.
Type:
str

sig

The signature to check.
Type:
str

signed

The ordered list of signed items you want to check.
Type:
list of pairs

Class Variable Details

mode

"check_authentication"
Type:
str
Value:
'check_authentication'                                                 

Generated by Epydoc 2.1 on Fri Dec 14 11:14:09 2007 http://epydoc.sf.net