Skip to content

Commit

Permalink
Merge pull request #21976 from sberyozkin/devservices_keycloak_realm_…
Browse files Browse the repository at this point in the history
…file_path

Fix DevServices for Keycloak loading the realm file from the file system
  • Loading branch information
sberyozkin authored Dec 9, 2021
2 parents a071b84 + 7e05fbf commit 6008c39
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 6008c39

Please sign in to comment.