Open manuschillerdev opened 1 year ago
We face the same problem. Overall this is a fantastic tool that fits our use-cases, but the lack of ability to provide an array of values is a blocker and unfortunately whatever I tried was met with failure. Is there a possibility that this is looked at or an alternative that someone knows is provided? I'm really unsure how to proceed as we need the ability to provide redirectUris/webOrigins per environment.
We provide arrays of values like ..
"my_redirects_json": "[\"http://localhost:3000/*\",\"https://abcdev.net/*\"]"
And then
"redirectUris": ${my_redirects_json},
^^ the problem is this breaks the json syntax and is a PIA as now you cannot compare json etc :(
The alternative I also tried was ....programatically splitting the arrays into elements ( easy )
"my_redirects_json_0": "http://localhost:3000/*"
"my_redirects_json_1": "https://abcdev.net/*
And then hardcoding...
"redirectUris": [ ${my_redirects_json_0}, ${my_redirects_json_1}"
But the issue is if we have a single realm file for multiple envs and one of the environments wants an additional settings it sort of breaks as you have to inject an empty value in and this empty value is not ignored;
For example
dev_settings::
"my_redirects_json_0": "http://localhost:3000/*"
"my_redirects_json_1": "https://abcdev.net/*
"my_redirects_json_2": "https://another-just-fordev.net/*
prod_settings::
"my_redirects_json_0": "http://localhost:3000/*"
"my_redirects_json_1": "https://abcdev.net/*"
"my_redirects_json_2": "" // not used in prod
And then hardcoding...
"redirectUris": [ ${my_redirects_json_0}, ${my_redirects_json_1}, ${my_redirects_json_2}"
This results in an empty element inside keycloak after applying the production settings; i would have hoped empty elements would have been ignore as this would have helped
Problem Statement
I want to provide
redirectURIs
for client apps via env variables.Minimal Example: