Skip to content

Commit 9071bd7

Browse files
chore: upgrade to Keycloak 26
1 parent 6903130 commit 9071bd7

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function create(object $resource, UserInterface $owner, array $context =
3838
);
3939

4040
// create resource_set on OIDC server
41-
$response = $this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
41+
$this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
4242
'auth_bearer' => $this->getPAT(),
4343
'json' => [
4444
'name' => \sprintf('%s_%s', $shortName, $resource->getId()->__toString()),
@@ -48,9 +48,6 @@ public function create(object $resource, UserInterface $owner, array $context =
4848
'owner' => $owner->getUserIdentifier(),
4949
],
5050
]);
51-
if (200 !== $response->getStatusCode()) {
52-
dump($response->toArray(false));
53-
}
5451
}
5552

5653
public function delete(object $resource, UserInterface $owner, array $context = []): void

compose.e2e.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@ services:
33
environment:
44
KEYCLOAK_ENABLE_HTTPS: "true"
55
KEYCLOAK_HTTPS_USE_PEM: "true"
6-
KC_LOG_LEVEL: "debug"
76
KEYCLOAK_HTTPS_CERTIFICATE_FILE: /opt/bitnami/keycloak/certs/tls.crt
87
KEYCLOAK_HTTPS_CERTIFICATE_KEY_FILE: /opt/bitnami/keycloak/certs/tls.key
9-
KEYCLOAK_EXTRA_ARGS: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true --import-realm"
8+
KEYCLOAK_EXTRA_ARGS: "--import-realm"
109
volumes:
1110
- ./helm/api-platform/keycloak/certs/tls.crt:/opt/bitnami/keycloak/certs/tls.crt:ro
1211
- ./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\" --hostname-backchannel-dynamic=true --import-realm"
60+
KEYCLOAK_EXTRA_ARGS: "--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\" --hostname-backchannel-dynamic=true"
108+
KEYCLOAK_PROXY_HEADERS: xforwarded
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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,6 @@ keycloak:
116116
value: "https://chart-example.local/oidc/"
117117
- name: KEYCLOAK_PRODUCTION
118118
value: "true"
119-
- name: KEYCLOAK_EXTRA_ARGS
120-
value: "--features=\"hostname:v2,scripts,persistent-user-sessions:v1\" --hostname-backchannel-dynamic=true"
121119
# must finish with a trailing slash (https://github.com/bitnami/charts/issues/10885#issuecomment-1414279144)
122120
httpRelativePath: /oidc/
123121
proxy: edge

0 commit comments

Comments
 (0)