[aerogear-dev] AeroGear TODO updates

Bruno Oliveira bruno at abstractj.org
Wed Sep 26 21:23:12 EDT 2012


Ahoy-hoy! 

Just to give a heads up, I did some changes at our TODO app

- Auth-Token will come from http headers response. For example:

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST http://localhost:8080/todo-server/auth/login -d '{"username":"john","password":"123"}'

< Auth-Token: 93351472-9949-47e8-bc4e-7edfe57a9c52
< Content-Type: application/json
< Transfer-Encoding: chunked
< Date: Thu, 27 Sep 2012 01:14:31 GMT


- Auth-Token must be sent on http headers at each request and will be validated at our servlet filter. If you're curious about it https://github.com/aerogear/TODO/commit/734af2d90fadcf1f99e9766cbf3e1e9a3b5092b6

For example:

curl -v -H "Accept: application/json" -H "Content-type: application/json" --header "Auth-Token: bde58803-fc3b-4c9e-b88d-32a9d5d2ce28" -X POST -d '{"title": "test", "style":"mydescription"}' http://localhost:8080/todo-server/projects

- aerogear.js configuration header has changed for the reasons above (Kris let me know if I did something wrong) 

- The latest 'stable' tag is 0.0.6.M6

Found an issue? https://issues.jboss.org/browse/AEROGEAR, please.

-- 
"The measure of a man is what he does with power" - Plato
-
@abstractj
-
Volenti Nihil Difficile


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20120926/815b2511/attachment.html 


More information about the aerogear-dev mailing list