You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2016/04/06 14:11:25 UTC

[jira] [Assigned] (SLING-5636) Form Authentication handler does not redirect to login form with non ROOT context

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

Carsten Ziegeler reassigned SLING-5636:
---------------------------------------

    Assignee: Carsten Ziegeler

> 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)