diff --git a/source/java/org/alfresco/repo/webdav/auth/BaseSSOAuthenticationFilter.java b/source/java/org/alfresco/repo/webdav/auth/BaseSSOAuthenticationFilter.java index 60d438231a..3a06c7c4d4 100644 --- a/source/java/org/alfresco/repo/webdav/auth/BaseSSOAuthenticationFilter.java +++ b/source/java/org/alfresco/repo/webdav/auth/BaseSSOAuthenticationFilter.java @@ -85,6 +85,29 @@ public abstract class BaseSSOAuthenticationFilter extends BaseAuthenticationFilt protected static final String MIME_HTML_TEXT = "text/html"; + protected String loginPageLink; + + /** + * @return login page link, which is send back to the client if the login fails in the filter. + * Override to change the default behaviour. + */ + public String getLoginPageLink() + { + if (loginPageLink == null || loginPageLink.isEmpty()) + { + return "/faces" + getLoginPage(); + } + else + { + return loginPageLink; + } + } + + public void setLoginPageLink(String loginPageLink) + { + this.loginPageLink = loginPageLink; + } + /** * @param serverConfiguration the serverConfiguration to set */ @@ -576,7 +599,7 @@ public abstract class BaseSSOAuthenticationFilter extends BaseAuthenticationFilt final PrintWriter out = resp.getWriter(); out.println("
"); out.println(""); out.println("Please ");
// Remove the auto refresh to avoid refresh loop, MNT-16931
// out.println("");
- out.println(" Please log in. Please log in.