Pulling an env var or Java variable into a view in V3
Wessel, Keith
kwessel at illinois.edu
Mon Jun 15 11:19:59 EDT 2015
Awesome! Thanks, Brent! I’m still figuring out where all the goodies are hidden in the IDP3 wiki space, so I sincerely appreciate the link, too. BTW, my complements to the team for the organization of the IDP3 config docs. Though I’m still finding nooks and crannies like the URL below, I’ve been impressed with the over-all approach.
Keith
From: users [mailto:users-bounces at shibboleth.net] On Behalf Of Brent Putman
Sent: Friday, June 12, 2015 5:51 PM
To: users at shibboleth.net
Subject: Re: Pulling an env var or Java variable into a view in V3
On 6/12/15 6:38 PM, Brent Putman wrote:
From the variables list at top of login.vm:
## environment - Spring Environment object for property resolution
Btw, it's mentioned here in the wiki:
https://wiki.shibboleth.net/confluence/display/IDP30/VelocityProperties
So you might just try something like:
$environment.getProperty('idpNodeName')
The wiki also documents the variant that returns a default value used when the property isn't set, which might be useful. So something like
$environment.getProperty('idpNodeName', 'some-default-value')
More information about the users
mailing list