KeycloakSession dependency injection

I am having issues injecting an instance of KeycloakSession (and/or KeycloakSessionFactory) as a Spring Bean using the KeycloakApplication.getSessionFactory() method. Is there any well known way of doing this successfully?

1 Like