Announcement Announcement Module
Collapse
No announcement yet.
Agent, Username, Password Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Agent, Username, Password

    DaoAuthenticationProvider currently authenticates using username and password. Can I authenticate using say agentId, username, password without implementing AuthenticationManager?

  • #2
    http://forum.springframework.org/showthread.php?t=9830
    Last edited by robyn; May 14th, 2006, 06:10 PM.

    Comment


    • #3
      Thanks Ben!

      The approaches solve the problem.

      Has the Acegi team considered changing the AuthenticationDao interface to
      loadByUsername(Object principal) instead of loadByUsername(String username)? Or loadByUserName(String username, Object principal).

      Comment


      • #4
        Unfortunately, that would be a really problematic change to make. Most people implement AuthenticationDao, so adding a new method to that interface would break their existing implementations. Also, all through DaoAuthenticationProvider we're using Strings, so it would be a non-trivial change. Many people subclass DaoAuthenticationProvider as well (for reasons such as this thread mentions) and as such it would cause backward compatibility constraints.

        Comment

        Working...
        X