Probably you receive Bad Request status code because the posted JSON
does not match the login method signature [1] login(final User user,
String password).
The JSON {"password":"123","loginName":"john"}
would work if the login
method signature was: login(String loginName, String password).
[1]:
https://github.com/aerogear/aerogear-controller-demo/blob/master/src/main...
On Mon, 2013-09-09 at 10:09 -0400, Summers Pittman wrote:
We've been updating/regression checking some of our older demos
on the
Android side of things and are having trouble authenticating against the
controller demo.
Right now Android posts the following:
{"password":"123","loginName":"john"
to
http://controller-aerogear.rhcloud.com/aerogear-controller-demo/login
and receives
HTTP/1.1 400 Bad Request
{"error":"AG_CONTROLLER000010: Parameter: 'password' was
missing from
Request"}
Any thoughts?
_______________________________________________
aerogear-dev mailing list
aerogear-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-dev