Home | Trees | Indices | Help |
|
---|
|
object --+ | AuthRequest
An object that holds the state necessary for generating an OpenID authentication request. This object holds the association with the server and the discovered information with which the request will be made.
It is separate from the consumer because you may wish to add things to the request before sending it on its way to the server. It also has serialization options that let you encode the authentication request as a URL or as a form POST.
|
|||
__init__(self,
endpoint,
assoc) Creates a new AuthRequest object. |
|||
setAnonymous(self,
is_anonymous) Set whether this request should be made anonymously. |
|||
addExtension(self,
extension_request) Add an extension to this checkid request. |
|||
addExtensionArg(self,
namespace,
key,
value) Add an extension argument to this OpenID authentication request. |
|||
openid.message.Message |
getMessage(self,
realm,
return_to=None,
immediate=True) Produce a openid.message.Message representing this request. |
||
str |
redirectURL(self,
realm,
return_to=None,
immediate=True) Returns a URL with an encoded OpenID request. |
||
formMarkup(self,
realm,
return_to=None,
immediate=True,
form_tag_attrs=None) Get html for a form to submit this request to the IDP. |
|||
bool |
shouldSendRedirect(self) Should this OpenID authentication request be sent as a HTTP redirect or as a POST (form submission)? |
||
Inherited from |
|
|||
Inherited from |
|
Creates a new AuthRequest object. This just stores each argument in an appropriately named field. Users of this library should not create instances of this class. Instances of this class are created by the library when needed.
|
Set whether this request should be made anonymously. If a request is anonymous, the identifier will not be sent in the request. This is only useful if you are making another kind of request with an extension in this request. Anonymous requests are not allowed when the request is made with OpenID 1.
|
Add an extension to this checkid request.
|
Add an extension argument to this OpenID authentication request. Use caution when adding arguments, because they will be URL-escaped and appended to the redirect URL, which can easily get quite long.
|
Produce a openid.message.Message representing this request.
|
Returns a URL with an encoded OpenID request. The resulting URL is the OpenID provider's endpoint URL with parameters appended as query arguments. You should redirect the user agent to this URL. OpenID 2.0 endpoints also accept POST requests, seeshouldSendRedirect and formMarkup .
|
Get html for a form to submit this request to the IDP.
|
Should this OpenID authentication request be sent as a HTTP redirect or as a POST (form submission)?
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Jun 22 21:41:45 2007 | http://epydoc.sourceforge.net |