Working http(s) authentication