Accessing Shibboleth properties from javascript

Cantor, Scott cantor.2 at osu.edu
Fri Nov 17 13:01:09 UTC 2023


> Are the properties defined in idp.properties etc accessible from such
> scripts?

They're part of the Spring environment, but it's a bit tricky to get at it (except from Java, where it's trivial), you need to get at the ApplicationContext interface to do it programatically.

What I would probably do were it me, to avoid extra code, is to inject specific properties into custom objects and then inject the custom objects into the script in the usual way.

Populate a map with anything you need basically.

<util:map id="...">
	<entry key="foo" value="%{name:default}" />
</util:map>

-- Scott




More information about the users mailing list