Skip to content

Commit 6903130

Browse files
feat: implement "hostname-backchannel-dynamic" Keycloak option
1 parent 1be7eff commit 6903130

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

api/src/Security/Http/Protection/ResourceResourceHandler.php

Lines changed: 1 addition & 1 deletion
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
}

compose.e2e.yaml

Lines changed: 1 addition & 1 deletion
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

compose.override.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ services:
5757
context: ./helm/api-platform/keycloak/
5858
target: keycloak
5959
environment:
60-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --import-realm"
60+
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true --import-realm"
6161
volumes:
6262
- ./helm/api-platform/keycloak/themes/api-platform-demo:/opt/bitnami/keycloak/themes/api-platform-demo
6363
- ./helm/api-platform/keycloak/config:/opt/bitnami/keycloak/data/import

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ services:
105105
KEYCLOAK_HOSTNAME: https://${SERVER_NAME:-localhost}/oidc/
106106
KEYCLOAK_HOSTNAME_ADMIN: https://${SERVER_NAME:-localhost}/oidc/
107107
KEYCLOAK_ENABLE_HEALTH_ENDPOINTS: "true"
108-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\""
108+
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true"
109109
# https://www.keycloak.org/server/all-config#category-health
110110
healthcheck:
111111
test: [ "CMD-SHELL", "curl http://127.0.0.1:8080/oidc/health || exit 1"]

helm/api-platform/values.yaml

Lines changed: 1 addition & 1 deletion
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)