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, sig, 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 fromQuery(klass, query)
Construct me from a web query.

Class Variables [hide private]
str mode = 'check_authentication'
the openid.mode of this request.

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.
str sig
The signature to check.
list of pairs signed
The ordered list of signed items you want to check.

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, assoc_handle, sig, 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__

fromQuery(klass, query)
Class Method

source code 

Construct me from a web query.
Parameters:
  • query (dict) - The query parameters as a dictionary with each key mapping to one value.
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'                                                 
      

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

sig


The signature to check.
Type:
str

signed


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