<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 26, 2014 at 3:06 PM, A577127 <span dir="ltr"><<a href="mailto:antoine.matyja@worldline.com" target="_blank">antoine.matyja@worldline.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I have an AeroGear UnifiedPush Server running on Windows 7. I registered my<br>
application and got the Application ID and Master secret. I added a variant<br>
for my Android app.<br>
<br>
Now I want to register the installation for my app on my device. I want to<br>
do this without having to change my application, so instead of using<br>
AeroGear SDK for Android, I want to register my app's token "manually" with<br>
the REST API provided by AeroGear.<br>
<br>
I read this tutorial (#Installation Registration) :<br>
<a href="http://aerogear.org/docs/specs/aerogear-server-push/" target="_blank">http://aerogear.org/docs/specs/aerogear-server-push/</a><br>
<<a href="http://aerogear.org/docs/specs/aerogear-server-push/" target="_blank">http://aerogear.org/docs/specs/aerogear-server-push/</a>><br>
<br>
Since I can't use curl on windows, I'm using "Postman", a chrome plugin to<br>
send custom HTTP requests. I had a few problems :<br>
<br>
- The URL https://SERVER:PORT/context/rest/registry/device doesn't respond<br>
to HTTPS. It does with HTTP. (same for all other rest urls)<br>
<br>
- I "translated" the curl command to POST parameters, but when I send it I<br>
get an authentication request, even though I already set the App ID and<br>
master secret in the header, in "Authorization" (I searched a little about<br>
it, the value is "AppID:MasterSecret" base64 encoded)<br></blockquote><div><br></div><div><br></div><div>here, you need the variantID and the variantSecret (not the AppID:MasterSecret)</div><div><br></div><div>
-M</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I tryed to use the username/password from my AG UnifiedPush server, it<br>
didn't work, same for App ID/Master secret. After cancelling I get<br>
"Unauthorized Request" of course.<br>
<br>
Here's a screenshot of the HTTP POST request configuration :<br>
<<a href="http://aerogear-dev.1069024.n5.nabble.com/file/n7128/shot1.png" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/file/n7128/shot1.png</a>><br>
And the form I get when I send it :<br>
<<a href="http://aerogear-dev.1069024.n5.nabble.com/file/n7128/shot2.png" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/file/n7128/shot2.png</a>><br>
<br>
Thanks in advance,<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://aerogear-dev.1069024.n5.nabble.com/REST-Installation-Registration-Authentication-problem-tp7128.html" target="_blank">http://aerogear-dev.1069024.n5.nabble.com/REST-Installation-Registration-Authentication-problem-tp7128.html</a><br>
Sent from the aerogear-dev mailing list archive at Nabble.com.<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>