<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>You can walk from the ProfileRequestContext to AttributeContext
and reference any resolved attributes.</p>
<p>e.g. if you have an attribute named "givenName" you could get the
first value with:<br>
</p>
<p>#set ($rpContext =
$profileRequestContext.getSubcontext('net.shibboleth.idp.profile.context.RelyingPartyContext'))<br>
#set ($attrContext =
$rpContext.getSubcontext('net.shibboleth.idp.attribute.context.AttributeContext'))<br>
#set ($givenNames =
$attrContext.getUnfilteredIdPAttributes().get("givenName").getValues())<br>
#set ($givenName = $givenNames.get(0).getValue())</p>
<p>Error checking left as an exercise for the reader.<br>
</p>
<p>-- Ian<br>
</p>
<div class="moz-cite-prefix">On 10/23/20 1:44 PM, Etan Weintraub
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BL0PR0102MB36043AD69F456A6F5E748519B11A0@BL0PR0102MB3604.prod.exchangelabs.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hey everybody-<o:p></o:p></p>
<p class="MsoNormal"> We are working on deploying the Password
Expiration notification pieces (<a
href="https://wiki.shibboleth.net/confluence/display/IDP4/ExpiringPasswordInterceptConfiguration"
moz-do-not-send="true">https://wiki.shibboleth.net/confluence/display/IDP4/ExpiringPasswordInterceptConfiguration</a>)
and are trying to customize the view at
views/intercept/expiring-password.vm to include some data from
the attribute resolver about the user (their name, when their
password expires, etc.). I can’t seem to find how to pull that
information in the view. Can anyone point me in the right
direction?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Etan E. Weintraub<o:p></o:p></p>
<p class="MsoNormal">IT Architect<o:p></o:p></p>
<p class="MsoNormal">Enterprise Authentication & Cloud
Workspace<o:p></o:p></p>
<p class="MsoNormal">IT@Johns Hopkins<o:p></o:p></p>
<p class="MsoNormal">Johns Hopkins at Mt. Washington<o:p></o:p></p>
<p class="MsoNormal"><a href="x-apple-data-detectors://4/"
moz-do-not-send="true"><span style="color:windowtext">5801
Smith Ave.</span></a><o:p></o:p></p>
<p class="MsoNormal">Davis Building <a
href="x-apple-data-detectors://4/" moz-do-not-send="true"><span
style="color:windowtext">Suite</span></a> 3110B<o:p></o:p></p>
<p class="MsoNormal"><a href="x-apple-data-detectors://5/0"
moz-do-not-send="true"><span style="color:windowtext">Baltimore,
MD 21209</span></a><o:p></o:p></p>
<p class="MsoNormal">E-mail: <a href="mailto:eweintra@jhmi.edu"
moz-do-not-send="true"><span style="color:windowtext">eweintra@jhmi.edu</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
</blockquote>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>