ahus1 / keycloak-dropwizard-integration

This project shows how Red Hat Keycloak and Dropwizard can be used together.
https://ahus1.github.io/keycloak-dropwizard-integration/tutorial.html
Apache License 2.0
54 stars 17 forks source link

Support for Keycloak 25? #394

Open gjvoosten opened 3 months ago

gjvoosten commented 3 months ago

As of Keycloak 25, keycloak-jaxrs-oauth-client, and keycloak-adapter-core it seems, are no longer available (see release notes). Will there be a version of this library that doesn't need them?

ahus1 commented 3 months ago

IMHO the way forward is to internalize those classes in a de.ahus1.keycloak package and maintain them ourselves. I don't have a time schedule for that yet. `

gjvoosten commented 3 months ago

Looks like that means dragging in all or most of the contents of adapters/oidc/jaxrs-oauth-client/src/main/java and adapters/oidc/adapter-core/src/main/java from Keycloak (24). Anything I can help you out with?

ahus1 commented 3 months ago

I gave it another thought - those are a lot of classes, and we're missing a proper test harness for that functionality. This project doesn't have the capacity to maintain them.

So I decided to keep the library version on 24.x ... when we internalized the other earlier classes around Java EE vs. Jakarta, we needed to change the classes. In this case, there is no need to change the classes.

IMHO the Dropwizard community should see if they could provide a generic OIDC client, and document how to use that with Keycloak. If you think some parts of the API shown in this project are helpful, they should be preserved in the Dropwizard community in such a Dropwizard OIDC project, or in a Dropwizard's core API.

Let me know your thoughts on this.