Handling 403 errors on j_security_check post | Community
Skip to main content
Level 4
October 16, 2015
Solved

Handling 403 errors on j_security_check post

  • October 16, 2015
  • 4 replies
  • 2339 views

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.
Best answer by boser87

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

Community Advisor
October 16, 2015
boser87Author
Level 4
October 16, 2015

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

Level 3
October 16, 2015

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

boser87AuthorAccepted solution
Level 4
October 16, 2015

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.