Skip to content

Commit

Permalink
Fix DevServices for Keycloak loading the realm file from the file system
Browse files Browse the repository at this point in the history
(cherry picked from commit 7e05fbf)
  • Loading branch information
sberyozkin authored and gsmet committed Dec 9, 2021
1 parent 2a48003 commit deb3709
Show file tree
Hide file tree
Showing 5 changed files with 2,077 additions and 136 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ protected void configure() {
Path filePath = Paths.get(realmPath.get());
if (Files.exists(filePath)) {
realmFileExists = true;
withFileSystemBind(realmPath.get(), KEYCLOAK_DOCKER_REALM_PATH, BindMode.READ_ONLY);
realmNameToUse = configuredRealmName.isPresent() ? null
: getRealmNameFromRealmFile(filePath.toUri(), realmPath.get());
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
quarkus.oidc.auth-server-url=${keycloak.url}/realms/quarkus/
quarkus.oidc.client-id=quarkus-app
quarkus.oidc.client-id=backend-service
quarkus.oidc.credentials.secret=secret

quarkus.keycloak.devservices.realm-path=${project.build.directory}/classes/quarkus-realm.json

quarkus.oidc-client.auth-server-url=${quarkus.oidc.auth-server-url}
quarkus.oidc-client.client-id=${quarkus.oidc.client-id}
quarkus.oidc-client.credentials.secret=${quarkus.oidc.credentials.secret}
Expand Down
Loading

0 comments on commit deb3709

Please sign in to comment.