<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Sep 19, 2013 at 6:04 PM, Apostolos Emmanouilidis <span dir="ltr">&lt;<a href="mailto:aemmanou@redhat.com" target="_blank">aemmanou@redhat.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div>
I suppose that this happens because the CDI container cannot find  a bean which implements the bean type AuthenticationManager&lt;Developer&gt;. The AuthenticationManagerImpl which is available on classpath, implements the AuthenticationManager&lt;Agent&gt;.<br>

<br>
Ag-Push should deploy without errors when using AuthenticationManager&lt;Agent&gt; at the injection point. <br></div></blockquote><div><br></div><div>yep &#39;Agent&#39; as the parameterized typed works fine. Using &#39;Agent&#39; works for me as well (instead of &#39;requiring&#39; User, SimpleUser or even Developer). </div>
<div><br></div><div><br></div><div>Thanks!</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"><div><div><div class="h5">

<br>
On Thu, 2013-09-19 at 16:50 +0200, Matthias Wessendorf wrote:
<blockquote type="CITE">
    Hello
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    Looking at the &#39;AuthenticationEndpoint&#39; I noticed that the &quot;org.jboss.aerogear.security.auth.AuthenticationManager&quot; class ([1]) is used without parameterization: 
</blockquote>
<blockquote type="CITE">
    <a href="https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/rest/security/AuthenticationEndpoint.java#L41-L42" target="_blank">https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/src/main/java/org/jboss/aerogear/unifiedpush/rest/security/AuthenticationEndpoint.java#L41-L42</a>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    This works fine, but I thought to actually apply a type, like:
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    private AuthenticationManager&lt;Developer&gt; authenticationManager;
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    But now I do get a DeploymentException:
</blockquote>
<blockquote type="CITE">
    WELD-001408 Unsatisfied dependencies for type [AuthenticationManager&lt;Developer&gt;] with qualifiers [@Default] at injection point [[field] @Inject private org.jboss.aerogear.unifiedpush.rest.security.AuthenticationEndpoint.authenticationManager]
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    I have also changed the parameterized type to be Picketlink&#39;s User, but I do get the same (almost the same) DeploymentException:
</blockquote>
<blockquote type="CITE">
    WELD-001408 Unsatisfied dependencies for type [AuthenticationManager&lt;User&gt;] with qualifiers [@Default] at injection point [[field] @Inject private org.jboss.aerogear.unifiedpush.rest.security.AuthenticationEndpoint.authenticationManager]
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    Any one knows what I am doing wrong ? 
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    Thanks,
</blockquote>
<blockquote type="CITE">
    Matthias
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    [1] <a href="https://github.com/aerogear/aerogear-security/blob/master/src/main/java/org/jboss/aerogear/security/auth/AuthenticationManager.java" target="_blank">https://github.com/aerogear/aerogear-security/blob/master/src/main/java/org/jboss/aerogear/security/auth/AuthenticationManager.java</a>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    <br>
    <br>
</blockquote>
<blockquote type="CITE">
    -- <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>
</blockquote>
</div></div><blockquote type="CITE">
<pre>_______________________________________________
aerogear-dev mailing list
<a href="mailto:aerogear-dev@lists.jboss.org" target="_blank">aerogear-dev@lists.jboss.org</a>
<a href="https://lists.jboss.org/mailman/listinfo/aerogear-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/aerogear-dev</a>
</pre>
</blockquote>
<br>
</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><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>