Skip to content

Commit

Permalink
feat(image): use admin-ui client encoded secret to render properties (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
iromli authored Oct 31, 2022
1 parent 1a57928 commit 31e9142
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-admin-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN apk update \
# TODO:
# - use NODE_ENV=production
# - download build package (not git clone)
ENV ADMIN_UI_VERSION=9c01b841e5a5c28d58d7b3aed6cbe87ff1c2126f
ENV ADMIN_UI_VERSION=1a57928d7e2bfdfa009e9de37f8785854d9e97e0

# note that as we're pulling from a monorepo (with multiple project in it)
# we are using partial-clone and sparse-checkout to get the admin-ui code
Expand Down
2 changes: 1 addition & 1 deletion docker-admin-ui/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libcst<0.4
# pinned to py3-grpcio version to avoid failure on native extension build
grpcio==1.41.0
git+https://github.com/JanssenProject/jans@e74ea8e27e59d35ff6e3c6f997e6c1df6a04ec83#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
git+https://github.com/JanssenProject/jans@63722ea7372f33bf2ad2c3ff01b068383e81e746#egg=jans-pycloudlib&subdirectory=jans-pycloudlib
1 change: 1 addition & 0 deletions docker-admin-ui/scripts/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ def ctx(self):
def export_plugin_properties(self):
with open("/app/templates/auiConfiguration.properties.tmpl") as f:
txt = f.read() % self.ctx
logger.info("Creating/updating plugins_admin_ui_properties secrets")
self.manager.secret.set("plugins_admin_ui_properties", txt)

@cached_property
Expand Down
4 changes: 2 additions & 2 deletions docker-admin-ui/templates/auiConfiguration.properties.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# auth server
authserver.clientId=%(admin_ui_client_id)s
authserver.clientSecret=%(admin_ui_client_pw)s
authserver.clientSecret=%(admin_ui_client_encoded_pw)s
authserver.authzBaseUrl=https://%(hostname)s/jans-auth/restv1/authorize
authserver.scope=openid+profile+email+user_name
authserver.acrValues=%(admin_ui_auth_method)s
Expand All @@ -15,7 +15,7 @@ authserver.endSessionEndpoint=https://%(hostname)s/jans-auth/restv1/end_session

# token server
tokenServer.clientId=%(token_server_admin_ui_client_id)s
tokenServer.clientSecret=%(token_server_admin_ui_client_pw)s
tokenServer.clientSecret=%(token_server_admin_ui_client_encoded_pw)s
tokenServer.authzBaseUrl=%(token_server_authz_url)s
tokenServer.scope=openid+profile+email+user_name
tokenServer.acrValues=basic
Expand Down

0 comments on commit 31e9142

Please sign in to comment.