| Home | Trees | Index | Help |
|
|---|
| Package openid :: Package server :: Module server :: Class CheckIDRequest |
|
object--+ |OpenIDRequest--+ | CheckIDRequest
A request to confirm the identity of a user.
This class handles requests for openid modescheckid_immediate and checkid_setup.
| Method Summary | |
|---|---|
Construct me. | |
__str__(self)
| |
OpenIDResponse
|
Respond to this request. |
| str |
Encode this request as a URL to GET. |
CheckIDRequest
|
Construct me from a web query. (Class method) |
| str |
Get the URL to cancel this request. |
| bool |
Is my return_to under my trust_root? |
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__
| |
| Instance Variable Summary | |
|---|---|
| str | assoc_handle: Provided in smart mode requests, a handle for a previously established
association. |
| str | identity: The identity URL being checked. |
| bool | immediate: Is this an immediate-mode request? |
| str | return_to: The URL to send the user agent back to to reply to this request. |
| str | trust_root: "Are you Frank?" asks the checkid request. |
| Class Variable Summary | |
|---|---|
| str | mode: "checkid_immediate" or "checkid_setup" |
| Instance Method Details |
|---|
__init__(self,
identity,
return_to,
trust_root=None,
immediate=False,
assoc_handle=None)
|
answer(self, allow, server_url=None)Respond to this request.
|
encodeToURL(self, server_url)Encode this request as a URL to GET.
|
getCancelURL(self)Get the URL to cancel this request. Useful for creating a "Cancel" button on a web form so that operation can be carried out directly without another trip through the server. (Except you probably want to make another trip through the server so that it knows that the user did make a decision. Or you could simulate this method by doing.answer(False).encodeToURL())
|
trustRootValid(self)Is my return_to under my trust_root?
|
| Class Method Details |
|---|
fromQuery(klass, query)Construct me from a web query.
|
| Instance Variable Details |
|---|
assoc_handleProvided in smart mode requests, a handle for a previously established association.None for dumb mode requests.
|
identityThe identity URL being checked.
|
immediateIs this an immediate-mode request?
|
return_toThe URL to send the user agent back to to reply to this request.
|
| Class Variable Details |
|---|
mode"checkid_immediate" or "checkid_setup"
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Jun 11 13:59:41 2007 | http://epydoc.sf.net |