[ https://issues.apache.org/jira/browse/SLING-5636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-5636. ------------------------------------- Resolution: Fixed Thanks Guillaume, I've applied your fix > Form Authentication handler does not redirect to login form with non ROOT > context > --------------------------------------------------------------------------------- > > Key: SLING-5636 > URL: https://issues.apache.org/jira/browse/SLING-5636 > Project: Sling > Issue Type: Bug > Components: Authentication > Affects Versions: Form Based Authentication 1.0.8 > Reporter: Guillaume Lucazeau > Assignee: Carsten Ziegeler > Fix For: Form Based Authentication 1.0.10 > > > When using the form authentication bundle with a servlet context path != > ROOT, accessing content requiring authentication redirects you to Sling home > page instead of your form because the redirection doesn't contain the context > path: > *INFO* [qtp1841606468-42] org.apache.sling.auth.core.impl.SlingAuthenticator > getAnonymousResolver: Anonymous access not allowed by configuration - > requesting credentials > *WARN* [qtp1841606468-42] org.apache.sling.auth.core.AuthUtil > isRedirectValid: Redirect target '/apps/opal/loginNode.html' does not start > with servlet context path '/dev' > Changing the redirection in FormAuthenticationHandler:413 with this worked > for me: > AuthUtil.sendRedirect(request, response, request.getContextPath() + > loginForm, params); -- This message was sent by Atlassian JIRA (v6.3.4#6332)