Skip to main content
Level 4
Oct 16, 2015 2:27 AM UTC
Solved

Handling 403 errors on j_security_check post

Hi,

when I post my login form to /something/j_security_check and the login credentials are wrong, my AuthenticationHandler returns Authentication.AUTH_FAIL and the server responds with a 403 status code and a blank page with only wirtten "Authentication Failed". Do you know how I can customize 403 error page (something very similar to 404.jsp)?

 

Thank you!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
boser87Accepted solution
Level 4
Oct 16, 2015 2:27 AM UTC

Exactly same result as reported in my first post: server responds with a 403 status code and a blank page with only wirtten "Authentication Failed". The 403.jsp is not called.

4 replies

boser87AuthorAccepted solution
Level 4
Oct 16, 2015 2:27 AM UTC

Exactly same result as reported in my first post: server responds with a 403 status code and a blank page with only wirtten "Authentication Failed". The 403.jsp is not called.

Translate
Level 3
Oct 16, 2015 2:27 AM UTC

did you try putting 403.jsp in sling/servlet/errorhandler as suggested in the first link? what was the outcome?

Translate
boser87Author
Level 4
Oct 16, 2015 2:27 AM UTC

Mshajiahmed wrote...

Please review following links for error handling and customization

http://docs.adobe.com/docs/en/cq/5-6-1/developing/customizing_error_handler_pages.html

http://www.wemblog.com/2013/03/how-to-create-custom-authentication.html

 

I have already checked those pages but I have not found any solution :-(

Thanks for your reply anyway

Translate
Community Advisor
Oct 16, 2015 2:27 AM UTC