Add authentication support to REST