## Velocity Template for SPNEGO auto-login handling on Password login page, included by login.vm ## ## To enable this auto-login enforcement feature, include this template in the section ## of login.vm: ## ## ## ... ## #parse("login-spnego.vm") ## ## ## Then, change the element in login.vm: ## ## ## ## Auto-login enforcement is enabled only if there were no errors in some previous operation. ## ## Set $spnegoEnforceAutoLogin to true if auto-login should occur, false otherwise (i.e. in case of errors). #if (not ($authenticationErrorContext && ($authenticationErrorContext.getClassifiedErrors().size() > 0 or $authenticationErrorContext.getExceptions().size() > 0))) ## Enable possible auto-login enforcement. #set ($spnegoEnforceAutoLogin = true) #else ## There were errors; auto-login should not occur. #set ($spnegoEnforceAutoLogin = false) #end #if ($spnegoEnforceAutoLogin) #end