Results 1 to 5 of 5

Thread: trying to understand new AuthenticationException.extraInformation deprecation

  1. #1
    Join Date
    Sep 2011
    Posts
    5

    Default trying to understand new AuthenticationException.extraInformation deprecation

    hello,

    i noticed in the changelogs a recent issue sec-1742 (which i cannot access anonymously in jira) that AuthenticationException.extraInformation is deprecated.

    i currently have a setup where i override onAuthenticationFailure() in my custom AuthenticationFailureHandler to keep track of failed authentication count. i use the badcredentialsexception.getExtraInformation() to access the user details object. my implementation of my userdetails object has a field that keeps track of the count of bad authentication attempts.

    so here's my question: given that extrainformation is now deprecated and presumably going away, how do i obtain a reference to my userdetails object from inside the onAuthenticationFailure() method:?

    Code:
        public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response,
                AuthenticationException exception) throws IOException, ServletException
    thanks,
    / eitan

  2. #2
    Join Date
    Jun 2007
    Location
    Vienna, Austria
    Posts
    68

    Default Wondering about the deprecation

    I'am just upgrading our webapp to spring-security-3.1.0.RELEASE and I also noticed the deprecation of AuthenticationException.extraInformation. I have exactly the same use case as Eitan and I'am also wondering how this use case can be implemented now.

    Even as authenticated user I cannot access the referenced sec-1742 in jira.springsource.org because I get a Permission Violation.

    thanks
    Martin

  3. #3
    Join Date
    Apr 2005
    Posts
    9

    Default

    Same use case here and no sulution yet.

    Anybody got a solution on this topic?

    Thanks
    Jonny

  4. #4
    Join Date
    Jun 2009
    Location
    Vicenza, Italy
    Posts
    84

    Default

    One more

    Thanks,
    Stefano

  5. #5
    Join Date
    Nov 2005
    Location
    Stockholm, Sweden
    Posts
    54

    Default

    +1 more..

    Sigmund Lundgren
    --
    Consultant/Contractor
    Stockholm, Sweden

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •