Results 1 to 4 of 4

Thread: Agent, Username, Password

  1. #1
    Join Date
    Aug 2004
    Posts
    13

    Default Agent, Username, Password

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

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    Last edited by robyn; May 14th, 2006 at 05:10 PM.

  3. #3
    Join Date
    Aug 2004
    Posts
    13

    Default

    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).

  4. #4
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    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.

Similar Threads

  1. Why Username & Password
    By catalin in forum Security
    Replies: 11
    Last Post: Jul 18th, 2008, 06:13 AM
  2. Replies: 2
    Last Post: Oct 13th, 2005, 02:47 PM
  3. Replies: 2
    Last Post: Oct 11th, 2005, 01:46 AM
  4. HELP: RememberMe does not work
    By lixin_chu in forum Security
    Replies: 2
    Last Post: May 19th, 2005, 10:26 AM
  5. Replies: 29
    Last Post: Apr 12th, 2005, 05:24 PM

Posting Permissions

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