BTW, for the "ongoing" work on master, for the java-sender we added a simple "http basic hack",

but more robust solution will follow soon (AGPUSH-99 (applies to the registration as well))


On Thu, Jun 20, 2013 at 3:09 PM, Matthias Wessendorf <matzew@apache.org> wrote:



On Thu, Jun 20, 2013 at 3:00 PM, Daniel Passos <daniel@passos.me> wrote:
Working in push android demo, I found 2 problems

1) We do not have a way to change the login name parameter sent to the server and on push the parameter name is different from what we have in api
- I changed this in code to test it [2]

that's a bug on Android. See AGIOS-35. It explains what iOS will do for 1.1.0 (basically following what JS already does)

Do something similar to what you already do for the enroll:
 

2) The Authentication API today is only to use in Pipeline
- I moved it to the HttpRestProvider class which is also used by the Pipeline [3].


not sure what you mean here.
 

Summers and I worked on it yesterday night, but still could not find the problem.

Apparently it logs in successful[y4], but when trying to register, the server responds: "No authentication challenges found"


Ah, the http basic for device registration.

Have you tried setting a header:

like:

setRequestHeader("Authorization", "Basic " + encodeBase64(user,password))




But for the demo, we are (currently) using this branch:

Here, we have NO auth for device registration.

 
_______________________________________________
aerogear-dev mailing list
aerogear-dev@lists.jboss.org
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