Question about velocity: using VelocityView
Cantor, Scott
cantor.2 at osu.edu
Fri Oct 14 13:32:12 EDT 2016
> I've been researching the custom object feature, and I saw examples of it for
> use in the attribute resolving/creation, but that wouldn't help me here
> because that happens after the auth piece has been completed, yes?
The custom object mechanism has nothing to do with when it's used, you can inject custom objects or maps of objects into any view or script so that you can always access anything you want to access from them.
> but would I put a custom object in there? Doesn't seem like a file anyone
> should be messing with.
https://wiki.shibboleth.net/confluence/display/IDP30/VelocityVariables
See "custom". You need to define shibboleth.CustomViewContext in global.xml to be something. An alias to a bean you want it to point to, a map of other beans like the example, etc.
<util:map id="shibboleth.CustomViewContext">
<entry key="cookieManager" value-ref="shibboleth.PersistentCookieManager"/>
</util:map>
> I don't suppose you could give me an example piece of code using the cookie
> manager?
Nothing that wouldn't be vastly more confusing than just reading the javadoc.
> or if there is some API documentation I haven't found...?
The java-support javadocs are linked on the Configuration page, and that class is included in that module.
-- Scott
More information about the users
mailing list