l.t.b.s.OpenIDMixin : class documentation

Part of lp.testopenid.browser.server View In Hierarchy

Known subclasses: lp.testopenid.browser.server.TestOpenIDLoginView, lp.testopenid.browser.server.TestOpenIDView

A mixin with OpenID helper methods.
Method __init__ Undocumented
Method user_identity_url Undocumented
Method isIdentityOwner Return True if the user can authenticate as the given ID.
Method openid_parameters A dictionary of OpenID query parameters from request.
Method getSession Get the session data container that stores the OpenID request.
Method restoreRequestFromSession Get the OpenIDRequest from our session.
Method saveRequestInSession Save the OpenIDRequest in our session.
Method renderOpenIDResponse Return a web-suitable response constructed from openid_response.
Method createPositiveResponse Create a positive assertion OpenIDResponse.
Method createFailedResponse Create a failed assertion OpenIDResponse.
def __init__(self, context, request):
Undocumented
@property
def user_identity_url(self):
Undocumented
def isIdentityOwner(self):
Return True if the user can authenticate as the given ID.
@cachedproperty
def openid_parameters(self):
A dictionary of OpenID query parameters from request.
def getSession(self):
Get the session data container that stores the OpenID request.
def restoreRequestFromSession(self):
Get the OpenIDRequest from our session.
def saveRequestInSession(self):
Save the OpenIDRequest in our session.
def renderOpenIDResponse(self, openid_response):
Return a web-suitable response constructed from openid_response.
def createPositiveResponse(self):
Create a positive assertion OpenIDResponse.

This method should be called to create the response to successful checkid requests.

If the trust root for the request is in openid_sreg_trustroots, then additional user information is included with the response.

def createFailedResponse(self):
Create a failed assertion OpenIDResponse.

This method should be called to create the response to unsuccessful checkid requests.

API Documentation for Launchpad, generated by pydoctor at 2019-11-20 00:00:15.