<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 20, 2013 at 3:00 PM, Daniel Passos <span dir="ltr"><<a href="mailto:daniel@passos.me" target="_blank">daniel@passos.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Working in push android demo, I found 2 problems<br>
<br>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<br>- I changed this in code to test it [2]<br></div></blockquote><div>
<br></div><div style>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)</div><div><br></div><div style>Do something similar to what you already do for the enroll:</div>
<div style><a href="https://github.com/aerogear/aerogear-android/blob/master/src/org/jboss/aerogear/android/authentication/AuthenticationModule.java#L50">https://github.com/aerogear/aerogear-android/blob/master/src/org/jboss/aerogear/android/authentication/AuthenticationModule.java#L50</a><br>
</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<br>2) The Authentication API today is only to use in Pipeline<br>- I moved it to the HttpRestProvider class which is also used by the Pipeline [3].<br></div></blockquote><div><br></div><div><br></div><div style>not sure what you mean here.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><br>Summers and I worked on it yesterday night, but still could not find the problem.<br>
<br>Apparently it logs in successful[y4], but when trying to register, the server responds: "No authentication challenges found"<br></div></blockquote><div><br></div><div><br></div><div style>Ah, the http basic for device registration.</div>
<div style><br></div><div style>Have you tried setting a header:</div><div style><br></div><div style>like:</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap">setRequestHeader("Authorization", "Basic " + encodeBase64(user,password))</span><br>
</div><div style><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap"><br></span></div><div style><span style="color:rgb(0,0,0);font-family:monospace;font-size:medium;white-space:pre-wrap"><br>
</span></div><div><br></div><div><br></div><div style>But for the demo, we are (currently) using this branch:</div><div style><a href="https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base">https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base</a><br>
</div><div style><br></div><div style>Here, we have NO auth for device registration.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><br>The same authentication works perfectly in TODO but not in server push. This is blocking me.<br>
<br>[1] <a href="http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Push-Authentication-tt3382.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-Push-Authentication-tt3382.html</a><br>[2] <a href="https://github.com/danielpassos/aerogear-android/commit/8f867f8d4a43eb47873a5eecd708780a062620c3" target="_blank">https://github.com/danielpassos/aerogear-android/commit/8f867f8d4a43eb47873a5eecd708780a062620c3</a><br>
[3] <a href="https://github.com/danielpassos/aerogear-android/commit/4636e51a4bd2590599c01e3a01ad472434b275a7" target="_blank">https://github.com/danielpassos/aerogear-android/commit/4636e51a4bd2590599c01e3a01ad472434b275a7</a><br>
[4] <a href="http://cl.ly/image/2q442B0N0Q40" target="_blank">http://cl.ly/image/2q442B0N0Q40</a><br>
</div>
<br>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org">aerogear-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Matthias Wessendorf <br>
<br>blog: <a href="http://matthiaswessendorf.wordpress.com/" target="_blank">http://matthiaswessendorf.wordpress.com/</a><br>sessions: <a href="http://www.slideshare.net/mwessendorf" target="_blank">http://www.slideshare.net/mwessendorf</a><br>
twitter: <a href="http://twitter.com/mwessendorf" target="_blank">http://twitter.com/mwessendorf</a>
</div></div>