Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

How to implement User Registration/Sign Up in a Vaadin App?

Steliyan Dinkov
7 years ago Apr 11, 2016 1:27pm

Hi everyone,

I want to build an App where users can register/sign up themselves.
I've checked numerous articles and examples, but I am still rather confused. There are some examples on how to do login forms, but I haven't yet found an example of how to do registration, i.e. how create new users and how to hash passwords and so on.
I tried some examples using apache shiro and mysql, some worked, some didn't, some are very outdated, like most of the vaadin related stuff on the internet.
So, what I want to do is pretty simple:
I want the users to be able to sign up themselves and to be able to login later on.
The application should also be able to save information about sessions and also load this on demand.
I can use a mysql db to store the data and any tool, framework or and addon that provides such a functionality.
I am pretty new to this all and I need some help to do this.

Ahmed Salem Soumare
2 years ago Aug 05, 2020 5:12pm
Sami Ekblad
2 years ago Dec 09, 2020 9:08am

Hi! Have a looked at this example for Vaadin 14: https://github.com/vaadin/vaadin-form-example/tree/v14

There is also more use case examples here: https://vaadin.com/start#use-case-examples and a video tutorial how to connect to backend