retrive username when password expired

Manuel Haim haim at hrz.uni-marburg.de
Fri Aug 18 09:16:28 EDT 2017


Hi,

I also needed to retrieve the current username in login.vm on IdP 3.3.1.
The medium fix could be to get the principalName from the IdP session:

#set ($idpSession =
$profileRequestContext.getSubcontext('net.shibboleth.idp.session.context.SessionContext',
true).getIdPSession())

#if ($idpSession)
  #set ($username = $idpSession.getPrincipalName())
#end

Kind regards,
Manuel


On 11.04.2017 19:23, Rich Graves wrote:
> Are you on 3.3.x? Release notes say that password is scrubbed but it's
> username as well. If this is the issue then the quick fix is to add
> this to conf/authn/password-authn-config.xml, and the medium fix is to
> find username in some other context (it's probably still around
> somewhere else).
> 
> <!-- Per 3.3 release notes needed for Duo's call to
> usernamePasswordContext.getUsername() -->
> <util:constant id="shibboleth.authn.Password.RemoveAfterValidation"
> static-field="java.lang.Boolean.FALSE"/>
> 



More information about the users mailing list