Part of twisted.web2.auth.wrapper View Source View In Hierarchy
Implements interfaces: twisted.web2.iweb.IResource
| Method | __init__ | |
| Method | login | |
| Method | authenticate | Attempt to authenticate the givin request | 
| Method | locateChild | Authenticate the request then return the self.wrappedResourceand the unmodified segments. | 
| Method | renderHTTP | Authenticate the request then return the result of calling renderHTTP on self.wrappedResource | 
| Method | _loginSucceeded | Callback for successful login. | 
| Method | _loginFailed | Errback for failed login. | 
| Parameters | wrappedResource | A twisted.web2.iweb.IResourceto be returned from locateChild and render upon successful 
authentication. | 
| credentialFactories | A list of instances that implement ICredentialFactory.
 (type:list) | |
| portal | Portal to handle logins for this resource.
 (type: twisted.cred.portal.Portal) | |
| interfaces | the interfaces that are allowed to log in via the given portal
 (type: tuple) | 
| Parameters | avatar | A tuple of the form (interface, avatar) as returned by your realm. | 
| request | IRequestthat
encapsulates this auth attempt. | |
| Returns | the IResource in self.wrappedResource | |
| Parameters | result | Failurereturned by portal.login | 
| request | IRequestthat
encapsulates this auth attempt. | |
| Returns | A Failurecontaining anHTTPErrorcontaining theUnauthorizedResponseifresultis anUnauthorizedLoginorUnhandledCredentialserror | |
| Parameters | factory | An ICredentialFactorythat understands the given response. | 
| response | The client's authentication response as a string. | |
| request | The request that prompted this authentication attempt. | |
| Returns | A Deferredthat fires with the wrappedResource on success 
or a failure containing anUnauthorizedResponse | |
| Parameters | request | An IRequestto be authenticated. | 
self.wrappedResource and the unmodified segments.
self.wrappedResource