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, signed, invalidate_handle)
Construct me.
  __str__(self)
OpenIDResponse answer(self, signatory)
Respond to this request.
CheckAuthRequest fromMessage(klass, message, op_endpoint)
Construct me from an OpenID Message. (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.
Message signed: The message with the signature which wants checking.

Class Variable Summary
str mode: "check_authentication"
list required_fields = ['identity', 'return_to', 'response_no...

Instance Method Details

__init__(self, assoc_handle, 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)
signed
           (type=Message)
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

fromMessage(klass, message, op_endpoint=None)

Construct me from an OpenID Message.
Parameters:
message - An OpenID check_authentication Message
           (type=openid.message.Message)
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

signed

The message with the signature which wants checking.
Type:
Message

Class Variable Details

mode

"check_authentication"
Type:
str
Value:
'check_authentication'                                                 

required_fields

Type:
list
Value:
['identity', 'return_to', 'response_nonce']                            

Generated by Epydoc 2.1 on Fri Jun 27 15:48:22 2008 http://epydoc.sf.net