Package openid :: Package consumer :: Module consumer :: Class AuthRequest
[frames | no frames]

Type AuthRequest

object --+
         |
        AuthRequest


Method Summary
  __init__(self, endpoint, assoc)
Creates a new AuthRequest object.
  addExtensionArg(self, namespace, key, value)
Add an extension argument to this OpenID authentication request.
  redirectURL(self, trust_root, return_to, immediate)
Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Method Details

__init__(self, endpoint, assoc)
(Constructor)

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.
Overrides:
__builtin__.object.__init__

addExtensionArg(self, namespace, key, value)

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.
Parameters:
namespace - The namespace for the extension. For example, the simple registration extension uses the namespace sreg.
           (type=str)
key - The key within the extension namespace. For example, the nickname field in the simple registration extension's key is nickname.
           (type=str)
value - The value to provide to the server for this argument.
           (type=str)

Generated by Epydoc 2.1 on Fri Dec 14 11:14:09 2007 http://epydoc.sf.net