Welcome to the new Apache Shiro Stormpath integration! This new release features a servlet plugin, plus deeper support for Spring and Spring Boot. Until now, we have only had a basic Apache Shiro realm for Stormpath. While sufficient, this basic realm never granted access to the full suite of Stormpath services. Today, that changed!
Servlet Plugin
You can still use the Stormpath realm the same way you are using it today, but if you switch to the new servlet plugin you also get all of the great features you have come to expect from Stormpath, along with the benefit of having the Shiro realm created and configured for you automatically. Just drop in the dependency:
1 2 3 4 5 6 |
<dependency> <groupId>com.stormpath.shiro</groupId> <artifactId>stormpath-shiro-servlet-plugin</artifactId> <version>0.7.1</version> </dependency> |
When migrating to the servlet plugin there are a few things to keep in mind:
I’ve taken the one of the original Stormpath + Apache Shiro examples and updated it to use the stormpath-shiro-servlet-plugin
as a migration guide.
Stormpath Loves Spring
I have created Spring Boot starters for web and non web applications, as well as examples to help get you started.
All you need to do is drop in the correct dependency:
1 2 3 4 5 6 |
<dependency> <groupId>com.stormpath.shiro</groupId> <artifactId>stormpath-shiro-spring-boot-web-starter</artifactId> <version>0.7.1</version> </dependency> |
These work in conjunction with the existing Stormpath Spring modules, if you are already familiar with them, you will have no problem getting started.
What Else?
As if Servlet and Spring Boot Starters weren’t exciting enough, this Shiro release include a TON of other new features, like:
Giving Back to Apache Shiro
Stormpath is committed to improving Apache Shiro, that is the big reason why I joined Stormpath in the first place. Over the next few weeks I will be delivering on a few of our more exciting promises, including: a Servlet 3.x support, improved Spring and Spring Boot support, and Guice 4.x support.
Learn More
To learn more about Apache Shiro, subscribe to the mailing lists, or check out the documentation. Ready to give Shiro or Stormpath a try? These awesome tutorials will get you started: