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
 
__init__(self, assoc_handle, signed, invalidate_handle=None)
Construct me.
source code
OpenIDResponse
answer(self, signatory)
Respond to this request.
source code
 
__str__(self)
str(x)
source code

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

Class Methods
CheckAuthRequest
fromMessage(klass, message, op_endpoint=None)
Construct me from an OpenID Message.
source code
Class Variables
str mode = 'check_authentication'
the openid.mode of this request.
  required_fields = ['identity', 'return_to', 'response_nonce']
Instance Variables
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

Inherited from object: __class__

Method Details

__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.

Parameters:
  • assoc_handle (str)
  • invalidate_handle (str)
  • signed (Message)
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)

Instance Variable Details

invalidate_handle

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