Origin Variable in logout.vm

Cantor, Scott cantor.2 at osu.edu
Tue May 17 10:05:36 EDT 2016


On 5/17/16, 1:47 AM, "users on behalf of Alexander Herr" <users-bounces at shibboleth.net on behalf of alexander.herr at gast.hs-merseburg.de> wrote:



>>> That was what I suspected at first. In the velocity logout.vm I tried to
>>> read the contents of $logoutContext.getSessionMap(), as that seems to be 
>>> the variable with which one can access the RelyingPartyContext [1].
>> 
>> Not in general certainly. It's not in a variable, it's just in the context tree one level down from the root profile request context.
>
>Well that is my question then. How do I access that information in the
>velocity logout template?

Access the RelyingPartyContext below the ProfileRequestContext and then call getRelyingPartyId() on the result.

-- Scott



More information about the users mailing list