Home | Trees | Index | Help |
|
---|
Package openid :: Package consumer :: Module consumer :: Class Consumer |
|
object
--+
|
Consumer
Method Summary | |
---|---|
Initialize a Consumer instance. | |
AuthRequest
|
Start the OpenID authentication process. |
AuthRequest
|
Start OpenID verification without doing OpenID server discovery. |
Called to interpret the server's response to an OpenID request. | |
Set the order in which association types/sessions should be attempted. | |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Instance Variable Summary | |
---|---|
GenericConsumer | consumer : an instance of an object implementing the OpenID protocol, but doing
no discovery or session management. |
session : A dictionary-like object representing the user's session data. |
Class Variable Summary | |
---|---|
str |
session_key_prefix : A string that is prepended to session keys to ensure that they are
unique. |
Instance Method Details |
---|
__init__(self,
session,
store,
consumer_class=None)
|
begin(self, user_url, anonymous=False)Start the OpenID authentication process. See steps 1-2 in the overview at the top of this file.
|
beginWithoutDiscovery(self, service, anonymous=False)Start OpenID verification without doing OpenID server discovery. This method is used internally by Consumer.begin after discovery is performed, and exists to provide an interface for library users needing to perform their own discovery.
|
complete(self, query, current_url)Called to interpret the server's response to an OpenID request. It is called in step 4 of the flow described in the consumer overview.
|
setAssociationPreference(self, association_preferences)Set the order in which association types/sessions should be attempted. For instance, to only allow HMAC-SHA256 associations created with a DH-SHA256 association session:
>>> consumer.setAssociationPreference([('HMAC-SHA256', 'DH-SHA256')])
Any association type/association type pair that is not in this list
will not be attempted at all.
|
Instance Variable Details |
---|
consumeran instance of an object implementing the OpenID protocol, but doing no discovery or session management.
|
sessionA dictionary-like object representing the user's session data. This is used for keeping state of the OpenID transaction when the user is redirected to the server. |
Class Variable Details |
---|
session_key_prefixA string that is prepended to session keys to ensure that they are unique. This variable may be changed to suit your application.
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Jun 6 15:54:34 2008 | http://epydoc.sf.net |