[ 
https://issues.apache.org/jira/browse/SLING-5636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Klco closed SLING-5636.
---------------------------

Closed with the release of [Form Based Authentication 
1.0.10|https://issues.apache.org/jira/projects/SLING/versions/12333863]

> 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
>            Priority: Major
>             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
(v7.6.3#76005)

Reply via email to