Signs a request directly with an appropriate signature. The request's Authorization header will change.

        Keyword arguments:
        request -- A request object which can be consumed by this API.
        authheaders -- A string-indexable object which contains the headers appropriate for this signature version.
        secret -- The base64-encoded secret key for the HMAC authorization.

def sign_direct(self, request, authheaders, secret):
        """Signs a request directly with an appropriate signature. The request's Authorization header will change.

        Keyword arguments:
        request -- A request object which can be consumed by this API.
        authheaders -- A string-indexable object which contains the headers appropriate for this signature version.
        secret -- The base64-encoded secret key for the HMAC authorization.
        """
        sig = self.sign(request, authheaders, secret)
        return request.with_header("Authorization", "Acquia {0}:{1}".format(authheaders["id"], sig))