Insert authentication into HTTP requests