<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><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;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@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]--></head><body lang=EN-US link="#0563C1" vlink=purple style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Thank you! That worked perfectly! Exactly what I needed!<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><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/"><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/"><span style='color:windowtext'>Suite</span></a> 3110B<o:p></o:p></p><p class=MsoNormal><a href="x-apple-data-detectors://5/0"><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"><span style='color:windowtext'>eweintra@jhmi.edu</span></a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> users <users-bounces@shibboleth.net> <b>On Behalf Of </b>Ian Bobbitt<br><b>Sent:</b> Friday, October 23, 2020 3:12 PM<br><b>To:</b> users@shibboleth.net<br><b>Subject:</b> Re: Customizing Password Expiration View to Display Attributes<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><b><br></b><strong><span style='font-size:12.0pt;color:white;background:red'> External Email - Use Caution </span></strong><o:p></o:p></p><p><o:p> </o:p></p><p><o:p> </o:p></p><div><p>You can walk from the ProfileRequestContext to AttributeContext and reference any resolved attributes.<o:p></o:p></p><p>e.g. if you have an attribute named "givenName" you could get the first value with:<o:p></o:p></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())<o:p></o:p></p><p>Error checking left as an exercise for the reader.<o:p></o:p></p><p>-- Ian<o:p></o:p></p><div><p class=MsoNormal>On 10/23/20 1:44 PM, Etan Weintraub wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><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">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/"><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/"><span style='color:windowtext'>Suite</span></a> 3110B<o:p></o:p></p><p class=MsoNormal><a href="x-apple-data-detectors://5/0"><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"><span style='color:windowtext'>eweintra@jhmi.edu</span></a><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><br><br><o:p></o:p></p></blockquote><pre><o:p> </o:p></pre></div></div></body></html>