Commit Graph

138 Commits

Author SHA1 Message Date
Ben Alex
dc726ac75c Clarify and enforce interface interface contract for AuthenticationDao. 2004-12-21 20:53:32 +00:00
Ben Alex
4bcc1222e1 Modifications to support EH-CACHE upgrade (EH-CACHE appears to have changed the way the default cache configuration file gets handled). 2004-12-21 13:04:11 +00:00
Ben Alex
c5ea35d093 Extend After ACL provider to also filter arrays. Thanks to Joni Suominen. 2004-12-17 21:56:05 +00:00
Ray Krueger
cb61c88478 Increased test coverate to 100% 2004-12-09 23:53:11 +00:00
Ben Alex
c5900cab9c Added a ContextHolderAwareRequestWrapper to integrate with getRemoteUser() and isUserInRole(String). Thanks to Orlando Garcia Carmona ("paramosyermos" on Spring forums). 2004-12-05 06:11:18 +00:00
Ben Alex
89ba20f057 Fix Tomcat compatibility issue where HttpSession unavailable during "logoff". Thanks to Aaron Tang. 2004-12-05 05:29:25 +00:00
Ben Alex
82ed7253d4 Refactor AbstractFilterInvocationDefinitionSource to use a standard URL String in its lookup method, rather than a full FilterInvocation. This will make it easier for views (taglibs etc) to access URI security details without needing to construct a MockFilterInvocation. 2004-12-05 05:04:52 +00:00
Ben Alex
76c82db196 Refactor EH-CACHE integration classes to work with Spring IoC provided Cache rather than manage our own cache internally. 2004-12-05 04:37:05 +00:00
Ben Alex
41b41ba316 Expand test coverage. Clover via Maven (without excluding appropriate patterns like *Exception and debug messages) has modified coverage from 77.2% to 95%. 2004-12-03 06:46:41 +00:00
Ben Alex
3a0e43337c Improve test coverage and error detection at startup time. 2004-12-01 02:22:24 +00:00
Ben Alex
89eed486e2 Add alwaysUseDefaultTargetUrl feature to AbstractProcessingFilter. 2004-11-22 21:38:14 +00:00
Ben Alex
ba16c01b90 Add toString() method so more informative when context propagation takes place, such as via ContextPropagatingRemoteInvocation. 2004-11-20 04:06:47 +00:00
Ben Alex
70a9c76f69 Remove unnecessary console output from tests. 2004-11-15 00:37:00 +00:00
Ben Alex
ef2e45df77 Update tests to support incompatible collaborator detection now in AbstractSecurityInterceptor. 2004-11-15 00:36:12 +00:00
Ben Alex
e83c66bb37 Expand test coverage so GrantedAuthorityEffectiveAclsResolver properly handles Authentication with a principal of type UserDetails. 2004-11-15 00:34:32 +00:00
Ben Alex
f1d993f47b Made BasicAclProvider to only respond to specified ACL object requests. 2004-11-09 21:09:14 +00:00
Carlos Sanchez
cd56f2ed4a Moved from test to main 2004-11-03 22:35:12 +00:00
Ben Alex
fde59c2f29 Ad mock method implementation now we're using HttpSession.removeAttribute(). 2004-10-30 23:32:53 +00:00
Carlos Sanchez
55624cf5dd Moved resources from java dir to resources dir 2004-10-30 22:49:12 +00:00
Carlos Sanchez
928498b53d Removed AutoIntegrationFilter 2004-10-30 22:45:35 +00:00
Ben Alex
89f6fcf5c9 Refactor to use an application context, thus enabling event publishing and use of DefaultAdvisorAutoProxyCreator. 2004-10-30 06:09:09 +00:00
Ben Alex
26f5f1a9b3 Add the AccessDeniedException to the HttpSession as per http://forum.springframework.org/viewtopic.php?t=1515. 2004-10-30 03:06:05 +00:00
Ben Alex
73349bf8f8 Add convenience method so subclasses can specify Authentication.setDetails(). 2004-10-30 01:19:22 +00:00
Ben Alex
992cf44b36 Refactor MethodDefinitionMap to use Method, not MethodInvocation. Refactor AbstractSecurityInterceptor to not force use of Throwable. Move AOP Alliance based MethodSecurityInterceptor to separate package. 2004-10-18 06:38:44 +00:00
Ben Alex
f123e9c333 Make MethodDefinitionMap query interfaces defined by secure objects, to properly support MethodDefinitionSourceAdvisor. 2004-10-15 03:47:53 +00:00
Ben Alex
8d973af603 Added MethodDefinitionSourceAdvisor for performance and autoproxying. 2004-10-15 00:29:24 +00:00
Ben Alex
333fe84ee8 Clarify interface contract for ObjectDefinitionSource when no ConfigAttributes exist for a given secure object invocation, plus unit tests and fixes for concrete implementations. Thanks to Sean Radford for spotting the inconsistency. 2004-09-11 06:14:58 +00:00
Ben Alex
8a32fde12a Additional convenience methods as suggested by Sean Radford. 2004-09-11 06:13:54 +00:00
Ben Alex
d7c98f95ca Made FilterToBeanProxy compatible with ContextLoaderServlet (lazy initialisation on first HTTP request). 2004-09-01 02:37:55 +00:00
Ben Alex
1a92434914 Add support for password-validating DAOs, such as LDAP. Contributed by Karel Miarka. 2004-08-30 01:24:12 +00:00
Ben Alex
aaebd3ef5a Added DaoAuthenticationProvider.hideUserNotFoundExceptions property. Defaults to true, so BadCredentialsException is thrown instead of UsernameNotFoundException if a user cannot be found. 2004-08-26 23:19:00 +00:00
Ben Alex
5cd65887d5 Improved ConfigAttributeEditor so it trims preceding and trailing spaces. 2004-08-25 21:43:00 +00:00
Ben Alex
3f87849f31 Fixed GrantedAuthorityEffectiveAclsResolver if null ACLs provided to method. 2004-08-23 02:03:46 +00:00
Ben Alex
eb9c7d0852 Extracted removeUserFromCache(String) to UserCache interface. 2004-08-20 05:52:05 +00:00
Ben Alex
04f4c9881d Added original Authentication.getDetails() to DaoAuthenticationProvider response. 2004-08-13 01:07:32 +00:00
Ben Alex
e006f521f4 Fix formatting. 2004-08-04 06:40:06 +00:00
Ben Alex
c1e109da74 Initial commit of remote client authentication interface. 2004-08-01 07:49:16 +00:00
Ben Alex
29f8097c64 Increase test coverage. 2004-08-01 07:48:14 +00:00
Ben Alex
b4a0e45e76 Increase test coverage. 2004-08-01 02:19:25 +00:00
Ben Alex
f7b491b699 Refactor ACL database tables. 2004-07-31 06:38:40 +00:00
Ben Alex
13d5a2dbca Refactor ACL database tables. 2004-07-31 03:42:18 +00:00
Ray Krueger
e366c65d17 Almost forgot this piece of the jaas tests 2004-07-29 16:56:26 +00:00
Ray Krueger
3b284231da Increased test coverage of the .jaas package to 93.7% 2004-07-29 16:54:02 +00:00
Ben Alex
56829872b6 Initial commit of ACL capabilities. 2004-07-29 07:51:22 +00:00
Ben Alex
2426bb9e8e Make JdbcDaoTests use in-memory database. 2004-07-29 03:32:23 +00:00
Ben Alex
8c74d459c5 Delete files with old, non-Camel Case name. 2004-07-28 23:06:04 +00:00
Ray Krueger
f29e6763d4 Renamed all JAAS* classes to Jaas* 2004-07-28 15:03:03 +00:00
Ben Alex
951c1a02df Store failed Authentication request in AuthenticationException, using template pattern (patch thanks to Wesley Hall). 2004-07-24 07:18:04 +00:00
Francois Beausoleil
3d23119b56 Following a suggestion from Scott Evans, added support for EL in the authz tag
library:
http://www.mail-archive.com/acegisecurity-developer%40lists.sourceforge.net/msg00189.html

* lib/spring/spring-mock.jar:
  Added Spring's 1.0.2 mock JAR.

* test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagExpressionLanguageTests.java:
  New tests to assert that the taglib recognizes and parses EL expressions.

* src/net/sf/acegisecurity/taglibs/authz/AuthorizeTag.java:
  Implemented AuthorizeTagExpressionLanguageTests by using Spring's
  ExpressionEvaluationUtils.
2004-07-23 01:24:55 +00:00
Ben Alex
2996d67b06 Fix bug related to detecting incorrect use of SecureContext property. 2004-07-21 02:04:42 +00:00