| Home | Trees | Index | Help |
|
|---|
| Package openid :: Package server :: Module server :: Class OpenIDResponse |
|
object --+
|
OpenIDResponse
| Method Summary | |
|---|---|
Make a response to an OpenIDRequest. | |
__str__(self)
| |
Add a field to this response. | |
Add a number of fields to this response. | |
| str |
Encode a response in key-value colon/newline format. |
| str |
Encode a response as a URL for the user agent to GET. |
| bool |
Does this response require signing? |
Update my fields with those from another OpenIDResponse. | |
How should I be encoded? | |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
| |
| Instance Variable Summary | |
|---|---|
| dict | fields: My parameters as a dictionary with each key mapping to one value. |
OpenIDRequest |
request: The request I respond to. |
| list of str | signed: The names of the fields which should be signed. |
| Method Details |
|---|
__init__(self,
request)
Make a response to an |
addField(self, namespace, key, value, signed=True)Add a field to this response.
|
addFields(self, namespace, fields, signed=True)Add a number of fields to this response.
|
encodeToKVForm(self)Encode a response in key-value colon/newline format. This is a machine-readable format used to respond to messages which came directly from the consumer and not through the user agent.
|
encodeToURL(self)Encode a response as a URL for the user agent to GET. You will generally use this URL with a HTTP redirect.
|
needsSigning(self)Does this response require signing?
|
update(self, namespace, other)Update my fields with those from another The idea here is that if you write an OpenID extension, it could
produce a Response object with other.fields will have their keys
prefixed with namespace and added to my fields. All
elements of other.signed will be prefixed with
namespace and added to my signed list.
|
whichEncoding(self)How should I be encoded?
|
| Instance Variable Details |
|---|
fieldsMy parameters as a dictionary with each key mapping to one value. Keys are parameter names with no leading "openid.".
e.g. "identity" and
"mac_key", never
"openid.identity".
|
requestThe request I respond to.
|
signedThe names of the fields which should be signed.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Dec 14 11:14:09 2007 | http://epydoc.sf.net |