Skip to content

Commit 5235908

Browse files
nginx-botpdabelf5renovate[bot]
authored
Update examples with keycloak 26.x (#8365)
Update examples with keycloak 26.x (#8362) * Update quay.io/keycloak/keycloak Docker tag to v26 | datasource | package | from | to | | ---------- | ------------------------- | ------ | ------ | | docker | quay.io/keycloak/keycloak | 25.0.2 | 26.4.0 | | docker | quay.io/keycloak/keycloak | 20.0.5 | 26.4.0 | * Update docs that use keycloak --------- Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Paul Abel <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent cac4bf6 commit 5235908

File tree

4 files changed

+17
-13
lines changed

4 files changed

+17
-13
lines changed

examples/custom-resources/jwks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ To set up Keycloak:
6666

6767
3. Create a new Client called `jwks-client`. This can be done by selecting the `Client`s tab on the left and then
6868
selecting `Create client`.
69-
- When creating the Client, ensure both `Client authentication` and `Authorization` are enabled.
69+
- When creating the Client, ensure both `Client authentication`, `Authorization` & `Direct access grants` are enabled.
7070

7171
4. Once the client is created, navigate to the `Credentials` tab for that client and copy the client secret.
7272
- This can be saved in the `SECRET` shell variable for later:
@@ -75,7 +75,7 @@ To set up Keycloak:
7575
export SECRET=<client secret>
7676
```
7777

78-
5. Create a new User called `jwks-user` by selecting the Users tab on the left and then selecting Create client.
78+
5. Create a new User called `jwks-user` by selecting the Users tab on the left and then selecting Create client. Ensure an email, first & last name are set.
7979

8080
6. Once the user is created, navigate to the `Credentials` tab for that user and select `Set password`. For this example
8181
the password can be whatever you want.

examples/custom-resources/jwks/keycloak.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ spec:
3131
spec:
3232
containers:
3333
- name: keycloak
34-
image: quay.io/keycloak/keycloak:20.0.5
34+
image: quay.io/keycloak/keycloak:26.4.0
3535
args: ["start-dev"]
3636
env:
37-
- name: KEYCLOAK_ADMIN
37+
- name: KC_BOOTSTRAP_ADMIN_USERNAME
3838
value: "admin"
39-
- name: KEYCLOAK_ADMIN_PASSWORD
39+
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
4040
value: "admin"
41-
- name: KC_PROXY
42-
value: "edge"
41+
- name: KC_HTTP_ENABLED
42+
value: "true"
43+
- name: KC_PROXY_HEADERS
44+
value: "xforwarded"
4345
ports:
4446
- name: http
4547
containerPort: 8080

examples/custom-resources/oidc/keycloak.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,17 @@ spec:
3131
spec:
3232
containers:
3333
- name: keycloak
34-
image: quay.io/keycloak/keycloak:25.0.2
34+
image: quay.io/keycloak/keycloak:26.4.0
3535
args: ["start-dev"]
3636
env:
37-
- name: KEYCLOAK_ADMIN
37+
- name: KC_BOOTSTRAP_ADMIN_USERNAME
3838
value: "admin"
39-
- name: KEYCLOAK_ADMIN_PASSWORD
39+
- name: KC_BOOTSTRAP_ADMIN_PASSWORD
4040
value: "admin"
41-
- name: KC_PROXY
42-
value: "edge"
41+
- name: KC_HTTP_ENABLED
42+
value: "true"
43+
- name: KC_PROXY_HEADERS
44+
value: "xforwarded"
4345
ports:
4446
- name: http
4547
containerPort: 8080

examples/custom-resources/oidc/keycloak_setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This guide will help you configure KeyCloak using Keycloak's API:
77

88
**Notes**:
99

10-
- This guide has been tested with keycloak 19.0.2 and later. If you modify `keycloak.yaml` to use an older version,
10+
- This guide has been tested with keycloak 26.4.0 and later. If you modify `keycloak.yaml` to use an older version,
1111
Keycloak may not start correctly or the commands in this guide may not work as expected. The Keycloak OpenID
1212
endpoints `oidc.yaml` might also be different in older versions of Keycloak.
1313
- if you changed the admin username and password for Keycloak in `keycloak.yaml`, modify the commands accordingly.

0 commit comments

Comments
 (0)