Add authentication support to REST views