Adding RESTful security