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

Class CheckAuthRequest

source code

   object --+    
            |    
OpenIDRequest --+
                |
               CheckAuthRequest

A request to verify the validity of a previous response.


See Also: OpenID Specs, Mode: check_authentication

Instance Methods [hide private]
  __init__(self, assoc_handle, signed, invalidate_handle=None)
Construct me.
OpenIDResponse answer(self, signatory)
Respond to this request.
  __str__(self)
str(x)

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__


Class Methods [hide private]
CheckAuthRequest fromMessage(klass, message, op_endpoint=None)
Construct me from an OpenID Message.

Class Variables [hide private]
str mode = 'check_authentication'
the openid.mode of this request.
  required_fields = ['identity', 'return_to', 'response_nonce']

Instance Variables [hide private]
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.

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

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

source code 

Construct me.

These parameters are assigned directly as class attributes, see my class documentation for their descriptions.
Overrides: object.__init__

fromMessage(klass, message, op_endpoint=None)
Class Method

source code 

Construct me from an OpenID Message.
Parameters:
Returns: CheckAuthRequest

answer(self, signatory)

source code 

Respond to this request.

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

__str__(self)
(Informal representation operator)

source code 

str(x)
Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

mode


the openid.mode of this request.
Type:
str
Value:
'check_authentication'                                                 
      

required_fields

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

Instance Variable Details [hide private]

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