upgrade-04-05.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ===============================================================================
  2. ACEGI SECURITY SYSTEM FOR SPRING - UPGRADING FROM 0.4 TO 0.5
  3. ===============================================================================
  4. The following should help most casual users of the project update their
  5. applications:
  6. - All filters are now loaded via FilterToBeanProxy. The FilterToBeanProxy
  7. obtains the filter from a Spring application context via the
  8. WebApplicationContextUtils.getApplicationContext() method. Refer to the
  9. reference documentation to see the new configuration of filters.
  10. - SecurityEnforcementFilter now requires an AuthenticationEntryPoint
  11. and PortResolver. Refer to the reference documentation to see the
  12. alternatives AuthenticationEntryPoint implementations available. Simply
  13. use the PortResolverImpl for the PortResolver requirement.
  14. - Any of your login or login failure pages that previously referred to
  15. AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY
  16. should now use
  17. net.sf.acegisecurity.ui.AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY
  18. - DaoAuthenticationProvider no longer provides setters for case sensitivity
  19. handling. The respective AuthenticationDao implementations should decide
  20. whether or not to return User instances reflecting the exact case of the
  21. requested username. The new PlaintextPasswordEncoder offers a setter for
  22. ignoring the password case (defaults to require exact case matches).
  23. - DaoAuthenticationProvider now provides caching. Successful authentications
  24. return DaoAuthenticationTokens. You must set the mandatory "key" property
  25. on DaoAuthenticationProvider so these tokens can be validated. You may
  26. also wish to change the "refreshTokenInterval" property from the default
  27. of 60,000 milliseconds.
  28. - If you're using container adapters, please refer to the reference
  29. documentation as additional JARs are now required in your container
  30. classloader.
  31. - Whilst not really a change needed to your program, if you're using
  32. Acegi Security please consider joining the acegisecurity-developer mailing
  33. list. This is currently the best way to keep informed about the project's
  34. status and provide feedback in design discussions. You can join at
  35. https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer.
  36. Please continue using the Spring Users mailing list for general support.
  37. There are also lots of new features you might wish to consider for your
  38. projects. These include CAS integration, pluggable password encoders
  39. (such as MD5 and SHA), along with pluggable salt sources. We hope you find
  40. the new features useful in your projects.
  41. $Id$