Expand my Community achievements bar.

SOLVED

Handling 403 errors on j_security_check post

Avatar

Level 4

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!

1 Accepted Solution

Avatar

Correct answer by
Level 4

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.

View solution in original post

4 Replies

Avatar

Level 4

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

Avatar

Level 3

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

Avatar

Correct answer by
Level 4

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.