prepared for prod
This commit is contained in:
parent
38f48f558e
commit
8081b9ecf0
|
@ -12,6 +12,7 @@
|
||||||
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
"keycloak": "{{ keycloak }}/{{ keycloak_realm }}",
|
||||||
"keycloak_admin": "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
"keycloak_admin": "{{ keycloak_admin }}/{{ keycloak_realm }}",
|
||||||
"ctx": "${workflow.input.context}",
|
"ctx": "${workflow.input.context}",
|
||||||
|
"jupyterhub_clientid" : "jupyterhub-dev",
|
||||||
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.ctx)) throw('Context must not be empty'); else return { encoded_context : $.ctx.replaceAll('/', '%2F')}"
|
"scriptExpression": "function e(v){ return (v == null || (v.trim && v.trim() === ''))}; if(e($.ctx)) throw('Context must not be empty'); else return { encoded_context : $.ctx.replaceAll('/', '%2F')}"
|
||||||
},
|
},
|
||||||
"type": "LAMBDA",
|
"type": "LAMBDA",
|
||||||
|
@ -66,7 +67,7 @@
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"url": "${init.input.keycloak_admin}/clients",
|
"url": "${init.input.keycloak_admin}/clients",
|
||||||
"params": {
|
"params": {
|
||||||
"clientId": "jupyterhub1"
|
"clientId": "${init.input.jupyterhub_clientid}"
|
||||||
},
|
},
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"headers": {
|
"headers": {
|
||||||
|
@ -91,7 +92,7 @@
|
||||||
"inputParameters": {
|
"inputParameters": {
|
||||||
"url": "${init.input.keycloak_admin}/clients/${lookup_jupyterhub.output.body[0].id}/authz/resource-server/resource",
|
"url": "${init.input.keycloak_admin}/clients/${lookup_jupyterhub.output.body[0].id}/authz/resource-server/resource",
|
||||||
"params": {
|
"params": {
|
||||||
"clientId": "jupyterhub1"
|
"clientId": "${init.input.jupyterhub_clientid}"
|
||||||
},
|
},
|
||||||
"method": "GET",
|
"method": "GET",
|
||||||
"headers": {
|
"headers": {
|
||||||
|
|
Loading…
Reference in New Issue