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
  • Loading branch information
sberyozkin committed Dec 8, 2021
1 parent 6c7b856 commit 7e05fbf
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 @@ -459,6 +459,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 7e05fbf

Please sign in to comment.