upgrade-070-080.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <html>
  2. <head>
  3. <title>Acegi Security - Upgrading from version 0.7.0 to 0.8.0</title>
  4. </head>
  5. <body>
  6. <h1>Upgrading from 0.7.0 to 0.8.0</h1>
  7. <p>
  8. The following should help most casual users of the project update their
  9. applications:
  10. <ul>
  11. <li>HttpSessionIntegrationFilter has been removed. Use net.sf.acegisecurity.context.HttpSessionContextIntegrationFilter instead.
  12. Note you will need to set the mandatory "context" property to something like "net.sf.acegisecurity.context.security.SecureContextImpl".
  13. It's not the default because we want no dependencies between the context package and the rest of Acegi Security.<br><br></li>
  14. <li>Filter ordering has changed. See the reference guide for confirmation of the correct ordering. Basically you should have
  15. HttpSessionContextIntegrationFilter appear before any of your authentication mechanisms.<br><br></li>
  16. <li>IoC container hosted filter chains can now be used instead of lengthy web.xml declarations. See the reference guide or the
  17. Contacts Sample for further information.<br><br></li>
  18. <li>Certain classes have been moved to new packages: ContextHolderAwareRequestWrapper (and its filter),
  19. AuthenticationSimpleHttpInvokerRequestExecutor, ContextPropagatingRemoteInvocation,
  20. SecureContext (and its implementation). These classes were moved as part of refactorings aimed at
  21. improving the simplicity of the project's design.<br><br></li>
  22. <li>If you wish to use the new ConcurrentSessionController you must declare the HttpSessionEventPublisher context listener in your
  23. web.xml<br><br></li>
  24. <li>The JaasAuthenticationCallbackHandler interface has had it's setAuthentication method removed.
  25. The handle method now takes both the Callback and Authentication objects as arguments.<br><br></li>
  26. <li>Added AuthenticationException to the AutenticationEntryPoint.commence method signature.<br><br></li>
  27. <li>Added AccessDeniedException to the SecurityEncorcementFilter.sendAccessDeniedError method signature.<br><br></li>
  28. <li>The Authentication.getDetails() no longer returns simply the IP address used for authentication.
  29. It now returns a WebAuthenticationDetails instance, which contains the IP address, session information,
  30. and can be extended to store further details.<br><br></li>
  31. </ul>
  32. </body>
  33. </html>