Skip to content

Commit

Permalink
downgrade keycloak-js
Browse files Browse the repository at this point in the history
if you are still relying on the shipped js, you probably also want the old
version, as v26 introduced some breaking changes

Signed-off-by: Kai Helbig <[email protected]>
  • Loading branch information
ostrya committed Jan 20, 2025
1 parent 2da7340 commit 3b3f2cc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ ext {
junit4_version = '4.13.2'
junit5_version = '5.11.4'
keycloak_version = '26.0.4'
keycloak_js_version = '26.1.0'
// the last version that was shipped together with keycloak server
keycloak_js_version = '25.0.6'
mockito_version = '5.15.2'
picocli_version = '4.7.6'
restassured_version = '5.5.0'
Expand Down
4 changes: 2 additions & 2 deletions mock/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ tasks.register('addResources', Copy) {
// make sure to fail if both JARs contain a NOTICE, then we need to merge the files somehow ...
duplicatesStrategy = DuplicatesStrategy.FAIL
from files(tarTree(configurations.jsResourceJar.singleFile)) {
include '/package/lib/keycloak.js'
include '/META-INF/NOTICE'
include '/package/dist/keycloak.js'
include '/package/LICENSE.txt'
}
from files(zipTree(configurations.htmlResourceJar.singleFile)) {
include '/org/keycloak/protocol/oidc/endpoints/3p-cookies-step1.html'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ResourceFileHandler provideCookie2Handler() {
@Singleton
@Named("keycloakJs")
ResourceFileHandler provideKeycloakJsHandler() {
return new ResourceFileHandler("/package/lib/keycloak.js");
return new ResourceFileHandler("/package/dist/keycloak.js");
}

@Provides
Expand Down

0 comments on commit 3b3f2cc

Please sign in to comment.