Attribute Access in Velocity files

Zunan Dong zunan.dong at
Thu May 21 18:26:32 UTC 2020

Thank you, Scott. This is really helpful. Now I can read attributes from AttributeContext in .vm files.

Zunan Dong

From: users <users-bounces at> on behalf of Cantor, Scott <cantor.2 at>
Sent: Thursday, 21 May 2020 14:07
To: Shib Users <users at>
Subject: Re: Attribute Access in Velocity files

EXTERNAL EMAIL:  Treat content with extra caution.

On 5/21/20, 1:53 PM, "users on behalf of Zunan Dong" <users-bounces at on behalf of zunan.dong at> wrote:

> I'm running Shibboleth IdP V3.3.0. Is it possible to access attributes defined in attribute-resolver.xml from velocity files
> under {idp.home}/views?

That question is overly broad, it depends on the view. But yes, it's possible when relevant to the timing of the view. The documentation on creating interceptors [1] describes where attributes resolved during normal processing live in the tree and the javadocs for all of the objects are otherwise the way you can learn how to do this sort of thing.

-- Scott


For Consortium Member technical support, see
To unsubscribe from this list send an email to users-unsubscribe at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list