Support basicAuth configuration at HttpProtocolConfig level, close #1022