Docs

Documentation versions (currently viewingVaadin 24)

Protect Views

Learn how to protect views in a Vaadin application based on user roles.

Logging in and out ensures that only authenticated users can access the application. However, most business applications require more than just authentication—different types of users often have varying levels of access.

In role-based applications, users are assigned specific roles that determine what data they can access and which actions they can perform. To enforce these restrictions, you must implement proper authorization for your views.

The following guides show you how to protect views in Vaadin applications and restrict access based on user roles: