From e66f146432a4a63fada791326b9f8664fc6add0b Mon Sep 17 00:00:00 2001 From: "m.lettere" Date: Fri, 13 Jan 2023 12:23:33 +0100 Subject: [PATCH] replaced hardcoded value with variable --- defaults/main.yaml | 4 ++-- templates/jupyterhub_add_serveroptions_to_context.json.j2 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index 74e799e..f05ae0f 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -4,7 +4,7 @@ workflows: # - group_deleted # - user-group_created # - user-group-role_created - - group_created +# - group_created # - invitation-accepted # - user-group_deleted # - user-group-role_deleted @@ -26,7 +26,7 @@ workflows: # - ghn_client_delete # - ghn_client_remove_from_contexts # - ghn_client_remove_from_context -# - jupyterhub_add_serveroptions_to_context + - jupyterhub_add_serveroptions_to_context keycloak_host: "https://accounts.dev.d4science.org/auth" keycloak: "{{ keycloak_host }}/realms" diff --git a/templates/jupyterhub_add_serveroptions_to_context.json.j2 b/templates/jupyterhub_add_serveroptions_to_context.json.j2 index eb2acc3..3c840d2 100644 --- a/templates/jupyterhub_add_serveroptions_to_context.json.j2 +++ b/templates/jupyterhub_add_serveroptions_to_context.json.j2 @@ -166,7 +166,7 @@ "audience": "${init.output.result.encoded_context}", "grant_type": "urn:ietf:params:oauth:grant-type:uma-ticket", "client_id": "orchestrator", - "client_secret": "0cf47f19-0db3-45f3-90ee-ed580eaba177" + "client_secret": "{{ keycloak_auth }}" } }, "type": "SIMPLE",