>
> Hi to all!
>
.....

> So, the Form-based authentication handler bundle seems to be inactive (but
> it is, as Felix Console shows...).
> How can i use it?
>

I resolved my issue, it was a trivial problem: the form action has to be in
the form "/some_node.html/j_security_check".
I was pointing the form action at "/j_security_check": in this case the
Sling POST Servlet creates a node at /j_security_check (with j_username and
j_password properties...) and the Form-based authentication handler is not
executed.

Also, i would signal that if the form contains the hidden parameter "
sling.auth.redirect", the following exception is thrown:
org.apache.sling.engine.impl.SlingMainServlet service: Uncaught Throwable
java.lang.IllegalStateException: Response has already been committed
at
org.apache.sling.engine.impl.SlingHttpServletResponseImpl.checkCommitted(SlingHttpServletResponseImpl.java:398)
 at
org.apache.sling.engine.impl.SlingHttpServletResponseImpl.setStatus(SlingHttpServletResponseImpl.java:265)
at org.apache.sling.api.servlets.HtmlResponse.send(HtmlResponse.java:424)
 at
org.apache.sling.servlets.post.impl.SlingPostServlet.doPost(SlingPostServlet.java:211)
        .........
        ........

I think this happens because the redirection commits the response, but the
Sling POST Servlet tries to process it anyway...
I'm now using the ajax login (with j_validate parameter) and all is working
fine, so i just would signal that... :-)

Greetings to all,
Long live beautiful Sling! :-D
Fabris

Reply via email to