wicket-shiro

Integration of Wicket with Apache Shiro

This project integrates Apache Wicket with Apache Shiro.  Wicket-shiro began as a simple refactoring of the already existing wicket-ki-security implementation, where all references of apache ki/jsecurity were changed to shiro.

In addition, instead of being dependent on jsecurity-0.9.0.jar (as was the case with wicket-ki-security), wicket-shiro now relies on the following Shiro jars:

shiro-core-1.0-incubating-SNAPSHOT.jar
shiro-web-1.0-incubating-SNAPSHOT.jar
shiro-spring-1.0-incubating-SNAPSHOT.jar

Example Applications

There are three examples available:

wicket-shiro-example-realm
wicket-shiro-example-spring-jdbc
wicket-shiro-example-spring-hibernate

Note that the hibernate example is new to wicket-shiro and does not exist in wicket-ki-security. In addition, several issues in the other examples have been resolved in wicket-shiro.

How to Build

Until Shiro becomes available in a maven repo, you'll need to first checkout and install shiro from SVN:

mkdir shiro
cd shiro
svn co http://svn.apache.org/repos/asf/incubator/shiro/trunk/
mvn install

Then checkout wicket-shiro from:

https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/shiro-security/

Note that because wicket-shiro is dependent on jars that are not in maven, it is currently not included in the wicketstuff-core POM.  Once shiro is in maven, wicket-shiro will be added to the wicketstuff-core POM.

Tutorials

Using Wicket with Shiro for Authentication and Authorization

Comments

Kwabena Agyemang says:

Good Job!

MichaƂ Minicki says:

Why use custom annotation instead of those Shiro provides out of the box?

Tauren Mills says:

Michal – good question. This project is simply a port of the wicket-jsecurity implementation (wicket-ki-security) to work with shiro 1.0, but didn't do any significant changes to the codebase. Mostly just maven updates and package and class name refactoring. I also cleaned up the samples and added a spring/hibernate example. But I agree that it would make sense to look into just using Shiro's annotations.

Chris Merrill says:

Why does the "Apache Shiro" page link to http://incubator.apache.org/ki/  ?  They appear to be related, did one supercede the other?


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Advanced
- Activity

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content