Add optional authentication to HTTP RPC base class.