Spring Security with Vaadin – basic authentication
Our aim is to do a simple basic authentication on the Vaadin application. I want a login dialog to pop up when we access the URL of the Vaadin application. I have created a simple product catalog application which looks very similar to the address book.
Getting ready
Set up Vaadin application on Eclipse:
Download Vaadin http://vaadin.com/eclipse for Eclipse Indigo.
For this chapter we will demonstrate Spring Security integration with both the Vaadin versions (Vaadin 6 and Vaadin 7).
Create a Vaadin web project in Eclipse with Vaadin 7—this will generate a default application with a click button which we will modify.
Run the application on the Tomcat server.
Create an
applicationContext.xml
file. It is mandatory to name it asapplicationContext
, or else we will get error messages in the console.Edit the
web.xml
file with spring listeners.Add all the jars in the class-path.
How to do it...
The following steps are for integrating Spring Security with...