<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 13, 2014 at 1:45 PM, Bruno Oliveira <span dir="ltr"><<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That would make sense into the Sender request, once we don’t have ways to identify if the data was encrypted or not, something like "--header “protected: true” (always optional). For example:<br>
</blockquote><div><br></div><div><br></div><div>hrm - not sure I like that 'protected' header on the SEND</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
curl -3 -u "{PushApplicationID}:{MasterSecret}"<br>
-v -H "Accept: application/json" -H "Content-type: application/json”<br>
--header “protected: true"<br>
-X POST<br>
<br>
-d '{<br>
"variants" : ["c3f0a94f-48de-4b77-a08e-68114460857e", "444939cd-ae63-4ce1-96a4-de74b77e3737" ....],<br>
"categories" : ["someCategory"],<br>
"alias" : ["<a href="mailto:user@account.com">user@account.com</a>", "<a href="mailto:jay@redhat.org">jay@redhat.org</a>", ....],<br>
"deviceType" : ["iPad", "AndroidTablet", "web"],<br>
<br>
"message": {"key":"value", "key2":"other value", "alert":"HELLO!"},<br>
"simple-push": "version=123"<br>
}'<br>
<br>
https://SERVER:PORT/CONTEXT/rest/sender<br>
<br>
Does it make sense to you? In the future with the key agreement, that might not be necessary.<br>
<br>
--<br>
abstractj<br>
<div class="im HOEnZb"><br>
On March 13, 2014 at 9:33:07 AM, Sebastien Blanc (<a href="mailto:scm.blanc@gmail.com">scm.blanc@gmail.com</a>) wrote:<br>
> > Shouldn't there be a flag in the request telling the cert and<br>
> passphrase are encrypted or not ? Or maybe the server can detect<br>
> by itself if it's encrypted or not .<br>
<br>
<br>
</div><div class="HOEnZb"><div class="h5">_______________________________________________<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></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>