Skip to content

Commit 776ff5c

Browse files
feat: implement "hostname-backchannel-dynamic" Keycloak option
1 parent 4b03860 commit 776ff5c

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Diff for: api/src/Security/Http/Protection/ResourceResourceHandler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function create(object $resource, UserInterface $owner, array $context =
4848
'owner' => $owner->getUserIdentifier(),
4949
],
5050
]);
51-
if ($response->getStatusCode() !== 200) {
51+
if (200 !== $response->getStatusCode()) {
5252
dump($response->toArray(false));
5353
}
5454
}

Diff for: compose.e2e.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
KC_LOG_LEVEL: "debug"
77
KEYCLOAK_HTTPS_CERTIFICATE_FILE: /opt/bitnami/keycloak/certs/tls.crt
88
KEYCLOAK_HTTPS_CERTIFICATE_KEY_FILE: /opt/bitnami/keycloak/certs/tls.key
9-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --import-realm"
9+
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true --import-realm"
1010
volumes:
1111
- ./helm/api-platform/keycloak/certs/tls.crt:/opt/bitnami/keycloak/certs/tls.crt:ro
1212
- ./helm/api-platform/keycloak/certs/tls.pem:/opt/bitnami/keycloak/certs/tls.key:ro

Diff for: compose.override.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ services:
5151
context: ./helm/api-platform/keycloak/
5252
target: keycloak
5353
environment:
54-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --import-realm"
54+
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true --import-realm"
5555
volumes:
5656
- ./helm/api-platform/keycloak/themes/api-platform-demo:/opt/bitnami/keycloak/themes/api-platform-demo
5757
- ./helm/api-platform/keycloak/config:/opt/bitnami/keycloak/data/import

Diff for: compose.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ services:
8585
KEYCLOAK_HTTP_RELATIVE_PATH: /oidc/
8686
KEYCLOAK_HOSTNAME: https://${SERVER_NAME:-localhost}/oidc/
8787
KEYCLOAK_HOSTNAME_ADMIN: https://${SERVER_NAME:-localhost}/oidc/
88-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\""
88+
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true"
8989
depends_on:
9090
- keycloak-database
9191
ports:

Diff for: helm/api-platform/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ keycloak:
117117
- name: KEYCLOAK_PRODUCTION
118118
value: "true"
119119
- name: KEYCLOAK_EXTRA_ARGS
120-
value: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\""
120+
value: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true"
121121
# must finish with a trailing slash (https://github.com/bitnami/charts/issues/10885#issuecomment-1414279144)
122122
httpRelativePath: /oidc/
123123
proxy: edge

0 commit comments

Comments
 (0)