## ## Velocity Template for logout flow's starting 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 ## logoutContext - context with SPSession details for logout operation ## multiRPContext - context with RelyingPartyContexts and possibly SP UI information from the metadata ## 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")) #if ($rpContext) #set ($rpUIContext = $rpContext.getSubcontext("net.shibboleth.idp.ui.context.RelyingPartyUIContext")) #end #set ($promptForIdP = $logoutContext and !$logoutContext.getIdPSessions().isEmpty()) #set ($promptForSP = $logoutContext and !$logoutContext.getSessionMap().isEmpty()) #if ($promptForSP and !$rpContext) #elseif ($promptForSP and $rpContext) #elseif ($promptForIdP) #end #springMessageText("idp.title", "Web Login Service")
#springMessageText(

#springMessageText("idp.logoutIntroduce", "Logout in progress")


#if ($promptForIdP or $promptForSP)

#springMessageText("idp.logout.prompt", "Choose one of the following, or wait a few seconds for the default.")


#springMessageText("idp.logout.idponly.caption", "End your SSO session.")

#end #if ($promptForSP)

#springMessageText("idp.logout.global.caption", "End your SSO session and attempt logout of services accessed during session.")


#springMessageText("idp.logout.contactServices", "If instructed, the system will attempt to contact the following services:")

    #foreach ($sp in $logoutContext.getSessionMap().keySet()) #set ($rpCtx = $multiRPContext.getRelyingPartyContextById($sp)) #if ($rpCtx) #set ($rpUIContext = $rpCtx.getSubcontext("net.shibboleth.idp.ui.context.RelyingPartyUIContext")) #end #if ($rpUIContext and $rpUIContext.getServiceName())
  1. $encoder.encodeForHTML($rpUIContext.getServiceName())
  2. #else
  3. $encoder.encodeForHTML($sp)
  4. #end #end

#end #if ($promptForIdP)

#springMessageText("idp.logout.cancel.caption", "Cancel logout and retain your SSO session.")

#end #if ($promptForIdP or $promptForSP)
#else #end
#if (!$promptForIdP and !$promptForSP) #end