'Add an I{basic authorization} header to the given request and then
dispatch it, starting from C{self.wrapper} and returning the resulting
L{IResource}.'

def _authorizedBasicLogin(self, request):

    authorization = b64encode(((self.username + ':') + self.password))
    request.requestHeaders.addRawHeader('authorization', ('Basic    ' + authorization))
    return getChildForRequest(self.wrapper, request)
