Part of twisted.web._auth.wrapper View Source View In Hierarchy
Implements interfaces: twisted.web.resource.IResource
| Instance Variables | _portal | The Portalwhich will be used to retrieveIResourceavatars. | 
| _credentialFactories | A list of ICredentialFactoryproviders which will be used to decode Authorization headers intoICredentialsproviders. | 
| Method | __init__ | Initialize a session wrapper | 
| Method | render | No summary | 
| Method | getChildWithDefault | No summary | 
| Method | _login | Get the IResourceavatar for the given credentials. | 
| Method | _loginSucceeded | Handle login success by wrapping the resulting IResourceavatar so that thelogoutcallback will be invoked when 
rendering is complete. | 
| Method | _loginFailed | Handle login failure by presenting either another challenge (for expected authentication/authorization-related failures) or a server error page (for anything else). | 
| Method | _selectParseHeader | Choose an ICredentialFactoryfrom_credentialFactoriessuitable to use to decode the given 
Authenticate header. | 
| Parameters | portal | The portal that will authenticate the remote client
 (type: Portal) | 
| credentialFactories | The portal that will authenticate the remote client based on one 
submitted ICredentialFactory(type:Iterable) | 
Avatar. On authentication failure, an 
UnauthorizedResource will be returned, essentially halting 
further dispatch on the wrapped resource and all children
IResource 
avatar so that the logout callback will be invoked when 
rendering is complete.
ICredentialFactory from 
_credentialFactories suitable to use to decode the given 
Authenticate header.
| Returns | A two-tuple of a factory and the remaining portion of the header value 
to be decoded or a two-tuple of Noneif no factory can decode 
the header value. | |