AuthenticationHandler: sling is always redirected to the gemotrix login page

I am implementing a login for my site using Custom AuthenticationHandler. When I provide the credentials and submit the form, the AuthenticationHandler always redirects to the geometry site and asks for the geometry credentials.

Even I tried to disable the geometry in my author instance, after logging in to my site, it redirects to the felix console site again.

How to limit besides my application pages?

Any help is very noticeable.

+4
source share
2 answers

You can change the default login page from felix console

http://localhost:4503/system/console/configMgr 

Configure Day CQ Login Selector Authentication Handler , set the default login page to the path of your user login page

+5
source

I think that the Day CQ Root Mapping servlet redirects you to it configured by the rootmapping target.

Take a look at /libs/cq/core/config.publish/com.day.cq.commons.servlets.RootMappingServlet inside crxde. The rootmapping servlet configuration is for /content.html, which is allowed for / content. redirect this to your content, or if it should coexist, then create an additional JcrResourceResolverFactoryImpl configuration.

Just create config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl node below your application in the /apps/<yourappp>/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl applications jcr: primaryType sling: OsgiConfig and add resource.resolver.mapping to yours, as the following examples demonstrate. resource.resolver.mapping = "[/ - /, / content / intranet / - / intranet - /, ....]" / ">

0
source

All Articles