<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>We have a new deployer in master that will be out in 2.2.  You
      can create a provider in any Java EE deployment WAR, EAR, JAR,
      etc.  The only requirement is that the ProviderFactory must be a
      pojo.  You should be able to hook into CDI then.  <br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 9/8/16 12:36 PM, Jared Blashka
      wrote:<br>
    </div>
    <blockquote
cite="mid:CALO-DfDmbqPf0LBWu643w+-xF2qigvijJXD6=B7mLQ8bE7g-XQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">Is there a way to enable CDI support within custom
        Authenticator and Provider implementations?
        <div><br>
        </div>
        <div>I added the weld subsystem into our standalone.xml and
          added a beans.xml into the keycloak-server-subsystem WEB-INF
          directory, but the weld subsystem still wasn't recognizing the
          keycloak-server.war deployment as CDI-enabled (though other
          wars deployed on JBoss were recognized without issues).</div>
        <div><br>
        </div>
        <div>I wanted to provide a default cache manager and annotate
          some of my authenticator/provider methods with @CacheResult to
          cache some fairly lengthy (but stable) data fetch operations.</div>
        <div><br>
        </div>
        <div>I could manually persist this data in an infinispan cache,
          but using the annotations would be cleaner</div>
        <div><br>
        </div>
        <div>Jared</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
keycloak-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:keycloak-user@lists.jboss.org">keycloak-user@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/keycloak-user">https://lists.jboss.org/mailman/listinfo/keycloak-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>