<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 20, 2013 at 3:09 PM, Matthias Wessendorf <span dir="ltr">&lt;<a href="mailto:matzew@apache.org" target="_blank">matzew@apache.org</a>&gt;</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"><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">&lt;<a href="mailto:daniel@passos.me" target="_blank">daniel@passos.me</a>&gt;</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&#39;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></div>
</div></div></div></blockquote><div><br></div><div><br></div><div style>filed a JIRA for it:</div><div style><a href="https://issues.jboss.org/browse/AGDROID-40">https://issues.jboss.org/browse/AGDROID-40</a><br></div><div>
<br></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"><div class="gmail_extra">
<div class="gmail_quote"><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"><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: &quot;No authentication challenges found&quot;<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(&quot;Authorization&quot;, &quot;Basic &quot; + 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=""><font color="#888888"><br></font></span></blockquote></div><span class=""><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>
</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>