Using environment variables in properties in 4.1
Cantor, Scott
cantor.2 at osu.edu
Fri May 21 15:53:36 UTC 2021
On 5/21/21, 11:41 AM, "users on behalf of Wessel, Keith" <users-bounces at shibboleth.net on behalf of kwessel at illinois.edu> wrote:
> idp.duo.integrationKey = ${DUO_INTEGRATION_KEY}
I think you need %{}. The dollar sign syntax is only required in a few edge cases and we had to convert to % to avoid Velocity collisions.
> Did something change between 4.0 and 4.1 regarding the ability to reference system environment variables
> in property files? More importantly, is there a more proper (and still functioning) way to do this?
I wouldn't have expected the $ syntax to ever work, or if it did, it would have been a bit hit or miss. I know it works sometimes, but it isn't the proper way within the scope of the IdP.
Now...does the % syntax work to pull from the environment? I really don't know. I think it does but the scope of changes is massive and getting Spring to do things correctly is a very ongoing process. I know that it handles Java system properties because that's how one injects idp.home now, typically.
-- Scott
More information about the users
mailing list