Commit Graph

5615 Commits

Author SHA1 Message Date
Francois Beausoleil 36a955e197 * test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagTests.java:
Removed testUsesAllAuthoritiesToDetermineAccess(), because it wasn't
  asserting anything.  Needs to be rewritten.
2004-03-23 17:33:47 +00:00
Francois Beausoleil d8275171e4 * test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagTests.java:
Bring Clover coverage to 100% by adding a single test.
2004-03-23 17:28:10 +00:00
Francois Beausoleil 1490e8a707 * samples/contacts/src/sample/contact/SecureIndexController.java:
Prevent a NullPointerException when no SecureContext can be found.
  Instead, throw a real exception, explaining what's wrong.
2004-03-23 17:27:04 +00:00
Francois Beausoleil 95d7ac1bf3 * samples/contacts/src/sample/contact/ContactManagerBackend.java:
Clean up how the contacts are returned.  Do not create unnecessary
  objects.
2004-03-23 17:25:34 +00:00
Ben Alex c3507b26c9 Change to Apache License version 2.0. 2004-03-23 04:44:48 +00:00
Ben Alex 3a72fc6bb9 Add Clover instrumentation. 2004-03-23 04:28:55 +00:00
Ben Alex 2c0aae03a7 Add Clover instrumentation. 2004-03-23 04:23:17 +00:00
Ben Alex a6e9c3faee Correct typo. 2004-03-23 02:10:35 +00:00
Ben Alex 4cef58a290 Add Clover instrumentation. 2004-03-23 02:07:59 +00:00
Ben Alex ac45efedac Reflect addition of taglib. 2004-03-23 02:03:47 +00:00
Ben Alex 47a2d03429 Added tearDown() method to clear ContextHolder. 2004-03-23 00:35:43 +00:00
Francois Beausoleil 89cbc9988b * docs/reference/src/index.xml:
Began documenting Acegi authz taglib.
2004-03-22 20:29:16 +00:00
Francois Beausoleil a92878b69f * samples/contacts/war/WEB-INF/jsp/include.jsp:
Declare access to the Acegi authz taglib.

* samples/contacts/war/WEB-INF/jsp/index.jsp:
  Use the Acegi authz taglib to protect access to the
  delete link for users which have the ROLE_SUPERVISOR.
2004-03-22 20:23:07 +00:00
Francois Beausoleil 48b21524ed * build.xml:
Modified to create an acegi-taglib.jar.

* project.properties:
  Added new property to build acegi-taglib.jar.

* src/net/sf/acegisecurity/taglibs/authz.tld:
  Declare the Acegi Security authz tag library.

* test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagTests.java,
  test/net/sf/acegisecurity/taglibs/authz/AuthorizeTagAttributeTests.java:
  A set of tests that force the creation of a javax.servlet.jsp.Tag
  implementation that authorizes the output of the tag's body if the
  request's principal has or doesn't have certain authorities.

* src/net/sf/acegisecurity/taglibs/authz/AuthorizeTag.java:
  New class.  Implements AuthorizeTagTests and
  AuthorizeTagAttributeTests.
2004-03-22 16:42:53 +00:00
Ben Alex 35fe1e7b73 Initial commit. 2004-03-16 23:57:17 +00:00