[aerogear-dev] Authentication issues

Summers Pittman supittma at redhat.com
Mon Sep 9 10:29:19 EDT 2013


On Mon 09 Sep 2013 10:23:01 AM EDT, Apostolos Emmanouilidis wrote:
> 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).

I tried a curl with the strings {"loginName":"john", "password":"123"} 
and {"user.loginName":"john", "password":"123"} and got the same result.

>
> [1]:
> https://github.com/aerogear/aerogear-controller-demo/blob/master/src/main/java/org/jboss/aerogear/controller/demo/Login.java#L47
>
>
>
> 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 at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev




More information about the aerogear-dev mailing list