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

Type AssociateRequest

   object --+    
            |    
OpenIDRequest --+
                |
               AssociateRequest


A request to establish an association.

See Also: OpenID Specs, Mode: associate

Method Summary
  __init__(self, session, assoc_type)
Construct me.
OpenIDResponse answer(self, assoc)
Respond to this request with an association.
  answerUnsupported(self, message, preferred_association_type, preferred_session_type)
Respond to this request indicating that the association type or association session type is not supported.
AssociateRequest 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__, __str__

Instance Variable Summary
str assoc_type: The type of association.
  session: An object that knows how to handle association requests of a certain type.

Class Variable Summary
str mode: "check_authentication"
dict session_classes = {'no-encryption': <class 'openid.serve...

Instance Method Details

__init__(self, session, assoc_type)
(Constructor)

Construct me.

The session is assigned directly as a class attribute. See my class documentation for its description.
Overrides:
__builtin__.object.__init__

answer(self, assoc)

Respond to this request with an association.
Parameters:
assoc - The association to send back.
           (type=openid.association.Association)
Returns:
A response with the association information, encrypted to the consumer's public key if appropriate.
           (type=OpenIDResponse)

answerUnsupported(self, message, preferred_association_type=None, preferred_session_type=None)

Respond to this request indicating that the association type or association session type is not supported.

Class Method Details

fromMessage(klass, message, op_endpoint=None)

Construct me from an OpenID Message.
Parameters:
message - The OpenID associate request
           (type=openid.message.Message)
Returns:
AssociateRequest

Instance Variable Details

assoc_type

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

session

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

Class Variable Details

mode

"check_authentication"
Type:
str
Value:
'associate'                                                            

session_classes

Type:
dict
Value:
{'DH-SHA1': <class 'openid.server.server.DiffieHellmanSHA1ServerSessio\
n'>,
 'DH-SHA256': <class 'openid.server.server.DiffieHellmanSHA256ServerSe\
ssion'>,
 'no-encryption': <class 'openid.server.server.PlainTextServerSession'\
>}                                                                     

Generated by Epydoc 2.1 on Wed Apr 22 16:14:21 2009 http://epydoc.sf.net