[aerogear-dev] AeroGear TODO updates

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[aerogear-dev] AeroGear TODO updates

Bruno Oliveira
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


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

_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] AeroGear TODO updates

Matthias Wessendorf
w00t !

thanks for doing that!!!

On Thu, Sep 27, 2012 at 3:23 AM, Bruno Oliveira <[hidden email]> wrote:

> 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
>
> _______________________________________________
> aerogear-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev
Reply | Threaded
Open this post in threaded view
|

Re: [aerogear-dev] AeroGear TODO updates

Matthias Wessendorf
Thanks for unblocking me :)

-Matthias

On Thu, Sep 27, 2012 at 6:02 AM, Matthias Wessendorf <[hidden email]> wrote:

> w00t !
>
> thanks for doing that!!!
>
> On Thu, Sep 27, 2012 at 3:23 AM, Bruno Oliveira <[hidden email]> wrote:
>> 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
>>
>> _______________________________________________
>> aerogear-dev mailing list
>> [hidden email]
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>>
>
>
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf



--
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
_______________________________________________
aerogear-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/aerogear-dev