## ## Velocity Template for DisplayUsernamePasswordPage view-state ## ## Velocity context will contain the following properties ## flowExecutionUrl - the form action location ## flowRequestContext - the Spring Web Flow RequestContext ## flowExecutionKey - the SWF execution key (this is built into the flowExecutionUrl) ## profileRequestContext - root of context tree ## authenticationContext - context with authentication request information ## authenticationErrorContext - context with login error state ## authenticationWarningContext - context with login warning state ## ldapResponseContext - context with LDAP state (if using native LDAP) ## rpUIContext - the context with SP UI information from the metadata ## extendedAuthenticationFlows - collection of "extended" AuthenticationFlowDescriptor objects ## passwordPrincipals - contents of the shibboleth.authn.Password.PrincipalOverride bean ## encoder - HTMLEncoder class ## request - HttpServletRequest ## response - HttpServletResponse ## environment - Spring Environment object for property resolution ## custom - arbitrary object injected by deployer ## #set ($rpContext = $profileRequestContext.getSubcontext('net.shibboleth.idp.profile.context.RelyingPartyContext')) #set ($username = $authenticationContext.getSubcontext('net.shibboleth.idp.authn.context.UsernamePasswordContext', true).getUsername()) #set ($passwordEnabled = false) #if (!$passwordPrincipals or $passwordPrincipals.isEmpty() or $authenticationContext.isAcceptable($passwordPrincipals)) #set ($passwordEnabled = true) #end ##