[keycloak-user] CDI Support within Authenticators and Providers?
Jared Blashka
jblashka at redhat.com
Thu Sep 8 12:36:05 EDT 2016
Is there a way to enable CDI support within custom Authenticator and
Provider implementations?
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).
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.
I could manually persist this data in an infinispan cache, but using the
annotations would be cleaner
Jared
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160908/a7b56d7c/attachment.html
More information about the keycloak-user
mailing list