[keycloak-user] user storage provider (Keycloak 2.5.0) deployed as war file: CDI does not work
Bill Burke
bburke at redhat.com
Thu Jan 19 10:01:14 EST 2017
How exactly are you implementing it? Can you point me to some example
code? Remember, UserStorageProviderFactory *MUST* be a POJO. I haven't
done CDI in years, but I believe it would work similarly to the EJB
example, except you'd look up the CDI bean manager and allocate your
provider through the bean manager.
On 1/19/17 5:36 AM, Matuszak, Eduard wrote:
> Hello
>
> It is not possible for me, to bring CDI (@Inject) to work in a user storage provider application (Keycloak 2.5.0), deployed as a war-file. The required beans.xml is placed correctly in the war-file and passed by Weld during deployment, but all injected objects are null.
>
> Is this a known (and possibly perforced) behaviour, a (minor) bug or simply due to a missing trick?
>
> Thanks in advance for a feedback, Eduard Matuszak
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
More information about the keycloak-user
mailing list