Add authentication framework into RPC