Announcement Announcement Module
Collapse
No announcement yet.
Customize Exception? Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Customize Exception?

    No useful, please try another one.
    Last edited by ricca; Nov 25th, 2010, 08:50 PM.

  • #2
    I don't really understand what you mean. Why would it be better to throw different exceptions?

    Also, you don't normally need to override or implement an AuthenticationManager when using Spring Security.

    Comment


    • #3
      If you have different login checks in your application then you can throw different exceptions, but I'm still not clear what you need them for. What are you actually trying to achieve - i.e. what's the requirement driving this?

      Comment


      • #4
        If you are customizing the authentication checks then you have full control over what exception is thrown. It should just be a subclass of AuthenticationException. You can control the redirection by implementing an AuthenticationFailureHandler which chooses the location based on the exception type.

        Comment

        Working...
        X