Access user attribute in terms-of-use.vm

Rhian Resnick rresnick at fau.edu
Fri Aug 18 10:26:51 EDT 2017


Thanks,


More correctly we need the browser to send an ajax call to retrieve and display the correct policy text as we cannot store static text in a properties file. We also need to record the acceptance of the policy information externally to Shibboleth.


Rhian Resnick

Assistant Director Middleware and HPC

Office of Information Technology


Florida Atlantic University

777 Glades Road, CM22, Rm 173B

Boca Raton, FL 33431

Phone 561.297.2647

Fax 561.297.0222

 [image] <https://hpc.fau.edu/wp-content/uploads/2015/01/image.jpg>

________________________________
From: users <users-bounces at shibboleth.net> on behalf of Cantor, Scott <cantor.2 at osu.edu>
Sent: Friday, August 18, 2017 10:20:47 AM
To: Shib Users
Subject: Re: Access user attribute in terms-of-use.vm

On 8/18/17, 10:10 AM, "users on behalf of Rhian Resnick" <users-bounces at shibboleth.net on behalf of rresnick at fau.edu> wrote:

> We need to lookup a user attribute in the terms-of-use.vm and pass it to a web service. Any thoughts on how to access an
> attribute such as eppn in velocity or a custom injected bean would be great.

Accessing the attribute is trivial, they're in the context tree (PRC->RelyingPartyContext->AttributeContext), but passing it to a web service is probably not something you want to be doing in a Velocity template or more to the point while a view is being rendered.

-- Scott




--
To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20170818/bc0c94c7/attachment-0001.html>


More information about the users mailing list