You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Eric Norman (Jira)" <ji...@apache.org> on 2021/07/13 16:45:00 UTC
[jira] [Comment Edited] (SLING-10605) Add a custom login page to
the generated project
[ https://issues.apache.org/jira/browse/SLING-10605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17380035#comment-17380035 ]
Eric Norman edited comment on SLING-10605 at 7/13/21, 4:44 PM:
---------------------------------------------------------------
[~rombert] Perhaps a resource (+ rendering script) based login form would be a better fit here than the custom-login-form fragment style approach.
For example, change the configuration with something like the following in the feature model to have it redirect to the login URL:
{{"configurations":{}}
{{ {{ "org.apache.sling.auth.form.FormAuthenticationHandler":{}}}}
{{ {{ "form.login.form":"/login.html"}}}}
{{ }}}
{{}}}
And then create the /content/login resource with a repoinit statement (or bundleresource if your prefer?) and provide the "html.html" script in the appropriate place under /apps to handle rendering the html extension for your "login" resource.
was (Author: enorman):
[~rombert] Perhaps a resource (+ rendering script) based login form would be a better fit here than the custom-login-form fragment style approach.
For example, change the configuration with something like the following in the feature model to have it redirect to the login URL:
{{ "configurations":{}}
{{ "org.apache.sling.auth.form.FormAuthenticationHandler":{}}
{{ "form.login.form":"/login.html"}}
{{ }}}
{{ }}}
And then create the /content/login resource with a repoinit statement (or bundleresource if your prefer?) and provide the "html.html" script in the appropriate place under /apps to handle rendering the html extension for your "login" resource.
> Add a custom login page to the generated project
> ------------------------------------------------
>
> Key: SLING-10605
> URL: https://issues.apache.org/jira/browse/SLING-10605
> Project: Sling
> Issue Type: Improvement
> Components: Maven Plugins and Archetypes
> Reporter: Robert Munteanu
> Assignee: Robert Munteanu
> Priority: Major
> Fix For: Sling Project Archetype 1.0.6
>
>
> The default o.a.s.auth.form page references resources from the o.a.s.starter.content module and it does not look nice if that bundle is not deployed ( missing CSS, images ).
> We should add a custom login form for this module, taking advantage of the improvements from SLING-10604.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)