[JsonRpc] Added access control middleware.