shiro-vaadin-integration | Vaadin

Apache Shiro support for Vaadin 10+ applications

This library allows you to use Vaadin 10's Router with Apache Shiro.


Implement the Vaadin views. For example:

public class LoginView extends VerticalLayout {}

public class View1View extends VerticalLayout {}

public class View2View extends VerticalLayout {}

Add a shiro.ini file in the resources directory and set your security configuration. Configure and ese the VaadinNavigationRolesAuthorizationFilter. For example:

authc.loginUrl = /login
vaadin = org.vaadin.shiro.VaadinNavigationRolesAuthorizationFilter
vaadin.loginUrl = /login

admin = admin, admin
user = user, user

admin = *
user = action1:*

/ = anon, vaadin
/login = anon, vaadin
/view1 = authc, vaadin[admin]
/view2 = authc, vaadin[user]

In order for this to work you have to configure the following filters:

public class ShiroListener extends EnvironmentLoaderListener { }

@WebFilter(urlPatterns = "/*")
public class ShiroFilter extends VaadinShiroFilter { }


Link to this version
StableReleased 22 June 2021Apache License 2.0
Framework Support
Vaadin platform 14
Install with
Release notes - Version 1.1.0

Updated to Vaadin 14.6.3 and Apache Shiro 1.7.1.