<div dir="ltr"><div>Hello All,</div><span class="gmail-im"><div><br></div><div>Sorry for the doubts, I'm starting in the shib world.<br></div><div><br></div></span>I
 developed a new authentication flow that is being called as the second 
factor through mfa-config-flow. I need to get the user attributes from 
the response of the first authentication factor "Password" to use in my 
authentication flow. Reading the documentation, I came up with this 
code:<div><br></div><div>Ps.: My question is in the code comment.<br></div><div><br></div><div><span class="gmail-im">public String TestLoginService(<wbr>AuthenticationContext authenticationContext, ProfileRequestContext<?, ?> profileRequestContext) {<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        SubjectCanonicalizationContext sub = (<wbr>SubjectCanonicalizationContext<wbr>) profileRequestContext.<wbr>getSubcontext("net.shibboleth.<wbr>idp.authn.context.<wbr>SubjectCanonicalizationContext<wbr>"); <br>        AttributeResolutionContext att = (AttributeResolutionContext) authenticationContext.<wbr>getSubcontext("net.shibboleth.<wbr>idp.attribute.resolver.<wbr>context.<wbr>AttributeResolutionContext", true);<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        att.setPrincipal(sub.<wbr>getPrincipalName());<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        att.<wbr>getRequestedIdPAttributeNames(<wbr>).add("mail");<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        att.<wbr>getRequestedIdPAttributeNames(<wbr>).add("eduPersonPrincipalName"<wbr>);<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        att.<wbr>getRequestedIdPAttributeNames(<wbr>).add("uid");<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        att.resolveAttributes(?)<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"></span>   
     //I don't now how to get an AttributeResolver objects to call the 
method att.resolveAttributes, which expects an AttributeResolver as 
parameter. <span class="gmail-im"><br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        IdPAttribute emailAttr = att.getResolvedIdPAttributes()<wbr>.get("mail");<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        IdPAttribute uid = att.getResolvedIdPAttributes()<wbr>.get("uid");<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">        IdPAttribute eppn = att.getResolvedIdPAttributes()<wbr>.get("eduPersonPrincipalName")<wbr>;<br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px">    }    <br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"><br style="font-family:Nylas-Pro,Helvetica,"Lucidia Grande",sans-serif;font-size:14.5px"></span>Thanks!</div></div>