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/734af2d90fadcf1f99e9766cbf3e1e9a3...
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