<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 8:55 PM, Bruno Oliveira <span dir="ltr">&lt;<a href="mailto:bruno@abstractj.org" target="_blank">bruno@abstractj.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">Are we skipping PL now?<br>
<a href="https://github.com/aerogear/aerogear-unified-push-server/blob/227ca43c6a4ee54ceab1b8ac325b7dab39284fbc/src/main/java/org/jboss/aerogear/connectivity/rest/registry/instances/MobileVariantInstanceEndpoint.java#L84" target="_blank">https://github.com/aerogear/aerogear-unified-push-server/blob/227ca43c6a4ee54ceab1b8ac325b7dab39284fbc/src/main/java/org/jboss/aerogear/connectivity/rest/registry/instances/MobileVariantInstanceEndpoint.java#L84</a><br>


<br>
I&#39;m asking, because the PL have already implemented it.<br></blockquote><div><br></div><div>I did it for a few reasons. I thought about using some &quot;extension&quot; of the PL Agent (or a wrapper): Something like &quot;MobileVariantAgent.java&quot;</div>

<div>That would have a variantID (similar to the login name) and a secret, stored as an attribute.</div><div><br></div><div style>Right now, what I really do is user the variantID and the secret and check if a) variant does exist and master password matches.</div>
<div style><br></div><div style>For the PicketLink I am also a bit unsure if that here (stealing the session) is bad:</div><div style><a href="https://issues.jboss.org/browse/PLINK-204">https://issues.jboss.org/browse/PLINK-204</a><br>
</div><div style><br></div><div style>so, I could &quot;login&quot; for variant &quot;123&quot; and have the chance to add &quot;devices&quot; for a different variant 122 (if that exists in the database).</div><div style>
<br></div><div style>I am very open, to go with the default filter from PL, but the above was my motivation of doing what I did for:</div><div style>* Sender endpoint</div><div style>* MobileVariantInstance endpoint</div>
<div style><br></div><div style>-Matthias</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">


<span><font color="#888888">--<br>
abstractj<br>
<br>
_______________________________________________<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><br>
</font></span></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>