View Full Version : Agent, Username, Password
eglim
Nov 22nd, 2004, 12:39 AM
DaoAuthenticationProvider currently authenticates using username and password. Can I authenticate using say agentId, username, password without implementing AuthenticationManager?
Ben Alex
Nov 22nd, 2004, 03:09 PM
http://forum.springframework.org/showthread.php?t=9830
eglim
Nov 23rd, 2004, 11:21 PM
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).
Ben Alex
Nov 28th, 2004, 06:04 PM
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.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.