I am interested in the best practice in authentication in Vaadin I think there is mainly two option here:
- ThreadLocal (can cause Out of memory, can have the same thread for different users)
- Spring Security + Vaadin integration (seems a little too much)
Which one do you prefer and why? (Security issues, easy development, other factors)
There are a lot of different ways for authentication in Vaadin.
LoginForm
.LoginForm
first available as a Add-On, then later built into Vaadin 7.7.LoginForm
.I recommend you to select 1 or 2 if you want make it easy or 4 if you want power security system.
Not quite to your question, but two mentions:
New Persona for Vaadin "add-on"
Uses the promising Persona authentication system invented by Mozilla. By Leif Åstrand. New, still at experimental stage.
UPDATE Mozilla has abandoned this project.
Stormpath
A company dedicated to providing a user login management API and service for developers. There are some other companies that seem to dabble in this new area of authentication-as-a-service, but Stormpath is the only one I know of that is dedicated to it.
I've not used either of these, but they are on my To-Do list.