View Full Version : Agent, Username, Password
Nov 22nd, 2004, 12:39 AM
DaoAuthenticationProvider currently authenticates using username and password. Can I authenticate using say agentId, username, password without implementing AuthenticationManager?
Nov 22nd, 2004, 03:09 PM
Nov 23rd, 2004, 11:21 PM
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).
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.