<div dir="ltr">Passos,<div style>I'm doing iOS quickstart demo with <a href="https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base" target="_blank" style="font-size:13px;font-family:arial,sans-serif">https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base</a> </div>
<div style>without auth for registration</div><div style><br></div><div style>Corinne</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 June 2013 15:09, Matthias Wessendorf <span dir="ltr"><<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">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><div>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>Do something similar to what you already do for the enroll:</div>
<div><a href="https://github.com/aerogear/aerogear-android/blob/master/src/org/jboss/aerogear/android/authentication/AuthenticationModule.java#L50" target="_blank">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"><div class="im">
<br>2) The Authentication API today is only to use in Pipeline<br></div>- 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>not sure what you mean here.</div>
<div class="im">
<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><div>Ah, the http basic for device registration.</div>
<div><br></div><div>Have you tried setting a header:</div><div><br></div><div>like:</div><div><br></div><div><span style="font-size:medium;white-space:pre-wrap;font-family:monospace">setRequestHeader("Authorization", "Basic " + encodeBase64(user,password))</span><br>
</div><div><span style="font-size:medium;white-space:pre-wrap;font-family:monospace"><br></span></div><div><span style="font-size:medium;white-space:pre-wrap;font-family:monospace"><br>
</span></div><div><br></div><div><br></div><div>But for the demo, we are (currently) using this branch:</div><div><a href="https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/tree/quickstart_base</a><br>
</div><div><br></div><div>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 class="im">
<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></div>_______________________________________________<br>
aerogear-dev mailing list<br>
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><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>
</font></span></div></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></div>