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.wrappedResource and 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.IResource
to 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 | IRequest that
encapsulates this auth attempt.
 | |
| Returns | the IResource in self.wrappedResource
 | |
| Parameters | result | Failure 
returned by portal.login
 | 
| request | IRequest that
encapsulates this auth attempt.
 | |
| Returns | A Failure
containing an HTTPError 
containing the UnauthorizedResponse
if result is an UnauthorizedLogin
or UnhandledCredentials
error
 | |
| Parameters | factory | An ICredentialFactory
that understands the given response.
 | 
| response | The client's authentication response as a string. | |
| request | The request that prompted this authentication attempt. | |
| Returns | A Deferred that fires with the wrappedResource on success 
or a failure containing an UnauthorizedResponse
 | |
| Parameters | request | An IRequest 
to be authenticated.
 | 
self.wrappedResource and the unmodified segments.
self.wrappedResource