> Markdown version of [Protect Views](https://vaadin.com/docs/v24/building-apps/security/protect-views). Section index: [llms.txt](https://vaadin.com/docs/v24/building-apps/llms.txt)

# Protect Views

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:

- [Protect Flow Views](https://vaadin.com/docs/v24/building-apps/security/protect-views/flow.md)

- [Protect Hilla Views](https://vaadin.com/docs/v24/building-apps/security/protect-views/hilla.md)
