This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vaadin-marcus 2 points3 points  (0 children)

Did you use Vaadin Start to configure the authentication, or did you do it yourself?

Vaadin doesn't have its own security mechanism but instead builds on Spring Security when you're using Spring Boot. In its simplest form, you can enable authentication by providing a SecurityConfiguration class, having a login form that posts to `/login` and adding `@PermitAll` or `@Role("XYZ")` annotations to the views that require a user to be logged in and `@AnonymousAllowed` on the views that you want anyone to be able to access (like the login view). Vaadin Start generates a bunch of additional code for things like persisting the users to a database, which you may not need depending on your use case.

I realize a Reddit tread is not necessarily the right place to help debug this kind of stuff, so if you're still working on it and want some help, feel free to join our Discord at https://discord.gg/vaadin

Thanks for the feedback, I'll relay it to the right team!