Fixing auth when proxy with auth used