## ## 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 ## #springMessageText("idp.title", "Web Login Service")
#set ($serviceName = $rpUIContext.serviceName) #if ($serviceName && !$rpContext.getRelyingPartyId().contains($serviceName))

#springMessageText("idp.login.loginTo", "Login to") $encoder.encodeForHTML($serviceName)

#end
#parse("csrf/csrf.vm") #* // // SP Description & Logo (optional) // These idpui lines will display added information (if available // in the metadata) about the Service Provider (SP) that requested // authentication. These idpui lines are "active" in this example // (not commented out) - this extra SP info will be displayed. // Remove or comment out these lines to stop the display of the // added SP information. // *# #set ($logo = $rpUIContext.getLogo()) #if ($logo) #end #set ($desc = $rpUIContext.getServiceDescription()) #if ($desc)

$encoder.encodeForHTML($desc)

#end #parse("login-error.vm") #if ($passwordEnabled) ## You may need to modify this to taste, such as changing the flow name checked to authn/MFA. #if (!$authenticationContext.getActiveResults().containsKey('authn/Password')) #end #end #if ($passwordEnabled)
#end #foreach ($extFlow in $extendedAuthenticationFlows) #if ($authenticationContext.isAcceptable($extFlow) and $extFlow.test(profileRequestContext))
#end #end