You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to build a custom User Storage Provider that uses a RestEasy and Microprofile Client to make JSON-based REST calls to my custom identity solution. I chose REST Easy since that is already included in the Keycloak distribution (when it was based on Wilfly), and my needs are simple.
With the switch to the Quarkus-based solution, things are no longer working. I'm running into issues with dependecies missing and getting ClassNotFound exceptions. I've read all of the info I can find about having to put dependecies into the "provider" directory, but I can never get anything to work.
If I use the one suggested approach and build my jar file with the maven assembly plugin and include all of the dependencies in the JAR, the kc.sh build command fails and I cannot move forward. I've tried to copy some of the jar files from the lib/lib/main directory into provider directory, but I keep running into problems because something is missing and its not clear what it is.
Can the keycloak team simply provide a detailed document that describes what is the process for building a provider that needs additional dependencies, with examples and working code ideally.
Being new to keycloak in general, and even newer to quarkus, its very, very difficult to even figure out what is going on and how to proceed. And I don't just want to keep hacking away until something works and then find out later that it was causing other problems that made things worse.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I need to build a custom User Storage Provider that uses a RestEasy and Microprofile Client to make JSON-based REST calls to my custom identity solution. I chose REST Easy since that is already included in the Keycloak distribution (when it was based on Wilfly), and my needs are simple.
With the switch to the Quarkus-based solution, things are no longer working. I'm running into issues with dependecies missing and getting ClassNotFound exceptions. I've read all of the info I can find about having to put dependecies into the "provider" directory, but I can never get anything to work.
If I use the one suggested approach and build my jar file with the maven assembly plugin and include all of the dependencies in the JAR, the kc.sh build command fails and I cannot move forward. I've tried to copy some of the jar files from the lib/lib/main directory into provider directory, but I keep running into problems because something is missing and its not clear what it is.
Can the keycloak team simply provide a detailed document that describes what is the process for building a provider that needs additional dependencies, with examples and working code ideally.
Being new to keycloak in general, and even newer to quarkus, its very, very difficult to even figure out what is going on and how to proceed. And I don't just want to keep hacking away until something works and then find out later that it was causing other problems that made things worse.
Beta Was this translation helpful? Give feedback.
All reactions