Results 1 to 4 of 4

Thread: Suggestion 4 UsernamePasswordAuthenticationToken

  1. #1
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default Suggestion 4 UsernamePasswordAuthenticationToken

    Hi,

    Is just a suggestion: details in UsernamePasswordAuthenticationToken can be Object, just more general. I think is more useful this way.

    Catalin

  2. #2
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default

    One more thing, in DaoAuthenticationProvider when createSuccessAuthentication details should be passed to, if UsernamePasswordAuthenticationToken is used.

    Is there any other way to send u this sugestions( of course if this suggestions interest acegi), i don't know if this forum is for that.

    Catalin

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

    Default

    Development changes should probably go to the acegisecurity-developers list, but the forum is also no problem. Just don't send them to me off-list, as I like suggestions receiving visibility so there is some historical record of why they were made.

    I have made the changes to UsernamePasswordAuthenticationToken and DaoAuthenticationProvider so they are no longer reliant on a String being presented. Of course, the main reason the Authentication.getDetails() method exists is to assist event listeners log useful information. So most of the time getDetails().toString() will be used, unless someone writes a custom listener to handle the particular type of Object they expect from the Authentication.

  4. #4
    Join Date
    Aug 2004
    Location
    Bucharest,Romania
    Posts
    19

    Default

    Exactly, but i tried to use detail to put a small List of object I need an Authenticated to have with him, so I thought: why "reinvent the wheel, so long as the wheel is perfectly round" (Rod Johnson )http://www.theserverside.com/talks/v...interview.html btw great interview.
    I,ve tried to use the impl acegi had for Authentication, first i've into the problem that details was String, than the problem that createSuccessAuthentication( ... ) in DaoAuthenticationProvider didn't pass the detail so I had to write my own impl.

    All good!
    Catalin

Similar Threads

  1. Documentation Suggestion: DTDDoc
    By rrsIPOV in forum Meta
    Replies: 0
    Last Post: May 15th, 2005, 12:43 PM
  2. Replies: 1
    Last Post: May 5th, 2005, 09:40 PM
  3. Replies: 1
    Last Post: May 4th, 2005, 05:30 PM
  4. HibernateTemplate suggestion?
    By bendg25 in forum Data
    Replies: 1
    Last Post: Apr 9th, 2005, 03:22 AM
  5. Suggestion on Font Management
    By bthh78 in forum Swing
    Replies: 0
    Last Post: Jan 25th, 2005, 04:03 AM

Posting Permissions

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