Skip to content

Commit a7676c3

Browse files
iromlimoabu
andauthored
fix(cloud-native): set proper jansAccessTknAsJwt for old admin-ui web client (#2207)
* fix(cloud-native): set proper jansAccessTknAsJwt for old admin-ui web client Signed-off-by: iromli <isman.firmansyah@gmail.com> * chore: update source version * chore: update source version --------- Signed-off-by: iromli <isman.firmansyah@gmail.com> Co-authored-by: moabu <47318409+moabu@users.noreply.github.com>
1 parent 787d0d6 commit a7676c3

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

docker-admin-ui/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ EXPOSE 8080
2020
# Assets sync
2121
# ===========
2222

23-
ENV JANS_SOURCE_VERSION=67b36806c69928d6458fe397d95245eccd0c0b10
23+
ENV JANS_SOURCE_VERSION=3c511a629e2efd254f5c2baa362c9ac62e45d734
2424

2525
ARG JANS_SETUP_DIR=jans-linux-setup/jans_setup
2626

@@ -45,7 +45,7 @@ RUN cd /tmp/jans \
4545
&& cp ${JANS_SETUP_DIR}/schema/custom_schema.json /app/schema/ \
4646
&& cp ${JANS_SETUP_DIR}/schema/opendj_types.json /app/schema/
4747

48-
ENV FLEX_SOURCE_VERSION=125432a77f3d4564bc2f84ea424e16c4b3a3e272
48+
ENV FLEX_SOURCE_VERSION=787d0d68494f221d11b0edb6d14d79be85207dd1
4949

5050
RUN mkdir -p /app/templates/admin-ui
5151

docker-admin-ui/scripts/upgrade.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ def update_web_client(self):
6767

6868
should_update = False
6969

70+
# jansAccessTknAsJwt is set to true since v5.9.0
71+
if not as_boolean(entry.attrs["jansAccessTknAsJwt"]):
72+
entry.attrs["jansAccessTknAsJwt"] = True
73+
should_update = True
74+
7075
if not self.backend.client.use_simple_json:
7176
scopes = entry.attrs["jansScope"]["v"]
7277
grant_types = entry.attrs["jansGrantTyp"]["v"]

docker-flex-all-in-one/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RUN ln -sf /app/flex_aio/admin_ui/entrypoint.sh /app/bin/admin-ui-entrypoint.sh
6565
# Assets sync
6666
# ===========
6767

68-
ENV JANS_SOURCE_VERSION=67b36806c69928d6458fe397d95245eccd0c0b10
68+
ENV JANS_SOURCE_VERSION=3c511a629e2efd254f5c2baa362c9ac62e45d734
6969

7070
# note that as we're pulling from a monorepo (with multiple project in it)
7171
# we are using partial-clone and sparse-checkout to get the assets

docker-flex-monolith/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ EXPOSE 443 8080 1636
4141
# flex-linux-setup
4242
# =====================
4343

44-
ENV FLEX_SOURCE_VERSION=125432a77f3d4564bc2f84ea424e16c4b3a3e272
44+
ENV FLEX_SOURCE_VERSION=787d0d68494f221d11b0edb6d14d79be85207dd1
4545

4646
# cleanup
4747
RUN rm -rf /tmp/jans

0 commit comments

Comments
 (0)