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

Class AssociateRequest

source code

   object --+    
            |    
OpenIDRequest --+
                |
               AssociateRequest

A request to establish an association.


See Also: OpenID Specs, Mode: associate

Instance Methods [hide private]
  __init__(self, session)
Construct me.
OpenIDResponse answer(self, assoc)
Respond to this request with an association.

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


Class Methods [hide private]
AssociateRequest fromQuery(klass, query)
Construct me from a web query.

Class Variables [hide private]
str mode = 'associate'
the openid.mode of this request.
  session_classes = {None: <class 'openid.server.server.PlainTextServerS...

Instance Variables [hide private]
str assoc_type = 'HMAC-SHA1'
The type of association.
  session
An object that knows how to handle association requests of a certain type.

Properties [hide private]

Inherited from object: __class__


Method Details [hide private]

__init__(self, session)
(Constructor)

source code 

Construct me.

The session is assigned directly as a class attribute. See my class documentation for its description.
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: AssociateRequest

answer(self, assoc)

source code 

Respond to this request with an association.
Parameters:
Returns: OpenIDResponse
A response with the association information, encrypted to the consumer's public key if appropriate.

Class Variable Details [hide private]

mode


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

session_classes

Value:
{None: <class 'openid.server.server.PlainTextServerSession'>,
 'DH-SHA1': <class 'openid.server.server.DiffieHellmanServerSession'>} 
      

Instance Variable Details [hide private]

assoc_type


The type of association. The protocol currently only defines one value for this, "HMAC-SHA1".
Type:
str
Value:
'HMAC-SHA1'                                                            
      

session


An object that knows how to handle association requests of a certain type.