Hi Robert, Chris

I don’t want or need to change the login page (that works and we could have a 
custom icon).

That I am looking for is a way to specify where the page goes after the login 
is successful.

OOTB Sling redirects to /content/starter/index.html but I want to have my 
custom page to come up.

As far as I can tell the redirect is done through the sling:target property on 
the root but I cannot change that through a package deployment.

- Andy

> On Apr 19, 2019, at 9:27 AM, Chris Millar <[email protected]> wrote:
> 
> You can find a working sample at [0] (Requires Sling 8).
> 
> As Robert mentioned, you will need to setup an OSGi configuration [1] to
> point to your desired login page [2][3].
> 
> Hope this helps!
> 
> [0] https://github.com/auniverseaway/slick-2
> [1]
> https://github.com/auniverseaway/slick-2/blob/master/ui.apps/src/main/resources/jcr_root/apps/slick/install/org.apache.sling.auth.form.FormAuthenticationHandler.json
> [2]
> https://github.com/auniverseaway/slick-2/blob/master/ui.apps/src/main/resources/jcr_root/content/slick/publish/login.json
> [3]
> https://github.com/auniverseaway/slick-2/tree/master/ui.apps/src/main/resources/jcr_root/apps/slick/author/common/login
> 
> On Fri, Apr 19, 2019 at 1:33 AM Robert Munteanu <[email protected]> wrote:
> 
>> Hi Andy,
>> 
>> On Thu, 2019-04-18 at 10:36 -0700, Andreas Schaefer wrote:
>>> Hi
>>> 
>>> I am wondering how an application would set a different landing page
>>> than the Sling Starter Page?
>>> 
>>> I tried to change the sling:target through a package deployment and
>>> it works for /content but not for the root (/).
>> 
>> Have you tried changing the form.login.form property of the
>> org.apache.sling.formauth.FormAuthenticationHandler component , as
>> described at [1]?
>> 
>> Thanks,
>> 
>> Robert
>> 
>> 
>> [1]:
>> https://sling.apache.org/documentation/the-sling-engine/authentication/authentication-authenticationhandler/form-based-authenticationhandler.html#configuration
>> 
>> 

Reply via email to