<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I tried to take the property placeholder functionality for a test drive, which should be available as of v1.2.0.Final. See JIRA: <a href="https://issues.jboss.org/browse/APIMAN-831">https://issues.jboss.org/browse/APIMAN-831</a><br><br></div>But for some reason I do not get it to work. Did I configure something wrong or am I running into a bug?<br><br></div><div>I use the property placeholder in the keycloak plugin which is preconfigured in a Docker image.<br></div><div>I defined the realm property of the Keycloak plugin as ${external_url}/auth/realms/apiman<br></div><div><br>I started my Docker image with the -e external_url=<a href="https://192.168.99.100:8443">https://192.168.99.100:8443</a> parameter to set the environment variable within the Docker container.<br><br></div><div>When I try to access the API I get a failure in Keycloak Plugin saying:<br><pre id="output">{
  &quot;type&quot;: &quot;Authentication&quot;,
  &quot;failureCode&quot;: 11004,
  &quot;responseCode&quot;: 401,
  &quot;message&quot;: &quot;Token audience doesn&#39;t match domain. Token issuer is <a href="https://192.168.99.100:8443/auth/realms/apiman">https://192.168.99.100:8443/auth/realms/apiman</a>, but URL from configuration is ${external_url}/auth/realms/apiman&quot;,
  &quot;headers&quot;: {}
}</pre>It looks like the property placeholder did not get resolved correctly.<br><br></div><div>When I have a look in the Docker image using docker exec -ti &lt;name&gt; /binbash and do a list of the environment variables. The environment variable is correctly defined:<br>MacBook-Pro-van-Ton:~ ton$ docker exec -ti tiny_wilson /bin/bash<br>[jboss@43c099aae441 ~]$ export<br>declare -x APIMAN_VERSION=&quot;1.2.0.Final&quot;<br>....<br>declare -x external_url=&quot;<a href="https://192.168.99.100:8443">https://192.168.99.100:8443</a>&quot;<br></div><div><br></div><div>I also tried setting the property to ${external_url} without the &#39;/auth/realms/apiman&#39; suffix. I figured that it might perhaps will do a full String comparison, but that did not work either.<br></div><div><br></div><div>Any ideas?<br></div><br></div>Regards, Ton<br></div>