Upgrade to Dropwizard 4.x, which migrated to Jakarta EE.
Removing all examples except the Dropwizard Module, as Keycloak doesn't provide Jakarta EE variants of the clients anymore.
Upgrade to Dropwizard 3.x, which introduced API changes related to Dropwizard.
No other API changes for your code.
Upgrading to latest Keycloak 12.0.1 thanks to @gjvoosten #39
Support cookie store for dropwizard module, promote usage also for situations for not only a bearer token (#38)
No API changes for your code.
Upgrading to latest Keycloak 11.0.0 and Dropwizard 2.0.12 thanks to @gjvoosten #35 No API changes for your code.
Upgrading to latest Keycloak 10.0.2 thanks to @gjvoosten #31 Upgrade to httpclient dependency. No API changes for your code.
Supporting policy enforcer/authz support by makeing JaxrsHttpFacade implement OIDCHttpFacade #25
Update to Keycloak 4.8.9 and Dropwizard 1.3.9. No API changes for your code. Minor change to allow for latest Keycloak library.
Update to Keycloak 3.0.0 and Dropwizard 1.1.0 thanks to @maksymgendin and @reneploetz
Upgrade to Keycloak 2.5.4, fixes by @reneploetz. Previous Keycloak 2.x versions should still work. Update to Dropwizard 1.0.6.
Upgrade to Keycloak 2.1.0 and Dropwizard 1.0. Some code changes due to the Dropwizard upgrade.
User who want to stay on Dropwizard 0.9 should use the 0.8.x releases.
Upgrade to Keycloak 2.0.0. No code or API changes.
Upgrade to Keycloak 1.9.8. No code or API changes.
Upgrade to Keycloak 1.9.4. Don't start authentication twice #6 as reported by @anthonyraymond.
Upgrade to Keycloak 1.9.3. No code or API changes.
Support use-resource-role-mappings
for dropwizard adapter thanks to @anthonyraymond. #5
Upgrading to Keycloak 1.9.
- You'll now need to include dropwizard-jackson module if you haven't done that before, as Keycloak client will assume that it is provided.
- Keycloak annotated their
AdapterConfig
with JsonProperty elements, therefore you can now (and must now) use the hyphenated configuration element names instead of the camelcase ones in youconfig.yml
. Example:authServerUrl
is nowauth-server-url
, andrealmKey
isrealm-public-key
.
Upgrading to Keycloak 1.8. No API changes.
Upgrading to Keycloak 1.7
Fix 500er response when bearer only and request without Authentication header. #4
Update to Keycloak 1.6. Although this is quite a major change for Keycloak, the API for our consumers didn't change. Therefore it is a patch only.
This release has also better support to combine a frontend public client with a backend bearer token only server.
Works with Keycloak 1.5 and Dropwizard 0.9.
When upgrading, you'll notice that @Auth(required=false)
is no longer supported by Dropwizard 0.9.
Instead instead inject the Security context like shown below.
@GET
@Path("/logout")
public LogoutView logout(@Context SecurityContext context) throws ServletException {
if (context.getUserPrincipal() != null) {
request.logout();
}
}
This is also the first release that supports the @RolesAllowed
annotation.
This was possible due to the Dropwizard 0.9 changes.
@GET
@RolesAllowed("user")
public DrawView show(@Auth User auth) {
DrawBean bean = new DrawBean();
DrawView view = new DrawView(bean);
bean.setName(auth.getName());
return view;
}
1st release to Maven Central. Works with Keycloak 1.4/1.5 and Dropwizard 0.8.
Initial release. Wrapped up as a Dropwizard Bundle. Handles full OAuth flow including form submissions. Works with Keycloak 1.4/1.5 and Dropwizard 0.8.