Results 1 to 3 of 3

Thread: AuthenticationFailureBadCredentialsEvent

  1. #1
    Join Date
    Aug 2009
    Posts
    14

    Default AuthenticationFailureBadCredentialsEvent

    Guys,

    i need some help with spring security. the problem is i am encoding the password for the new user login but when they try to login they coudlnt. the problem is the same pasword for other user is working fine but not for the new users created by the application. i am using MD5Md5PasswordEncoder

    attached the security.xml file.

    1)Exception message
    ****************
    AuthenticationFailureBadCredentialsEvent org.springframework.security.event.authentication. AuthenticationFailureBadCredentialsEvent[source=org.springframework.security.providers.User namePasswordAuthenticationToken@623c7ca3: Principal: test25; Password: [PROTECTED]; Authenticated: false; Details: org.springframework.security.ui.WebAuthenticationD etails@fffd148a: RemoteIpAddress: 127.0.0.1; SessionId: 9behsCmmvpqglcUd32MVJuK; Not granted any authorities]
    Attached Files Attached Files

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

    Default

    I would guess that you encode your passwords differently than the Md5PasswordEncoder does it.

    Please have a look at the posting http://forum.springsource.org/showthread.php?t=74027

    Perhaps this will already give you a hint to solve your problem.

    Martin
    Last edited by mpr; Aug 5th, 2009 at 07:13 AM. Reason: corrected typo

  3. #3
    Join Date
    Aug 2009
    Posts
    14

    Default

    thanks martin. found out what the problem was after debugging with security sources. the problem is my loaduserbyusername() method throws usernotfoundexception.

    again thanks for the quick reply.

Posting Permissions

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