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 an OpenID message. (Class method) |
str |
Get the URL to cancel this request. |
bool |
Is the identifier to be selected by the IDP? |
bool |
Does the relying party publish the return_to URL for this response under the realm? It is up to the provider to set a policy for what kinds of realms should be allowed. |
bool |
Is my return_to under my trust_root? |
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__
|
Property Summary | |
---|---|
namespace |
Instance Variable Summary | |
---|---|
str | assoc_handle : Provided in smart mode requests, a handle for a previously established
association. |
str | claimed_id : The claimed identifier. |
str | identity : The OP-local identifier 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,
op_endpoint=None)
|
answer(self, allow, server_url=None, identity=None, claimed_id=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() )
|
idSelect(self)Is the identifier to be selected by the IDP?
|
returnToVerified(self)Does the relying party publish the return_to URL for this response under the realm? It is up to the provider to set a policy for what kinds of realms should be allowed. This return_to URL verification reduces vulnerability to data-theft attacks based on open proxies, cross-site-scripting, or open redirectors. This check should only be performed after making sure that the return_to URL matches the realm.
|
trustRootValid(self)Is my return_to under my trust_root?
|
Class Method Details |
---|
fromMessage(klass, message, op_endpoint)Construct me from an OpenID message.
|
Instance Variable Details |
---|
assoc_handleProvided in smart mode requests, a handle for a previously established association.None for dumb mode requests.
|
claimed_idThe claimed identifier. Not present in OpenID 1.x messages.
|
identityThe OP-local identifier 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 Fri Jun 6 15:54:34 2008 | http://epydoc.sf.net |