hook up http basic auth to rpc