---
title: Vaadin 7 Spring Security
order: 44
layout: page
---
[[vaadin-7-spring-security-base-authentication]]
= Vaadin 7 + Spring Security (base authentication)
Vaadin 7 is easy to integrate with Spring Security. You should configure only
2 files. First - web.xml and second one spring-security.xml (user
credentials and security settings). This is a small example on how to use
base form for authentication.
[[web.xml-configuration]]
web.xml Configuration
^^^^^^^^^^^^^^^^^^^^^
[source,xml]
....
Vaadin7SpringSecurity
contextConfigLocation /WEB-INF/spring/spring-security.xml
org.springframework.web.context.ContextLoaderListener
springSecurityFilterChain
org.springframework.web.filter.DelegatingFilterProxy
springSecurityFilterChain
/*
....
[[spring-security.xml]]
spring-security.xml
^^^^^^^^^^^^^^^^^^^
[source,xml]
....
....
For more details, how to extend *spring-security.xml* configuration you
can use
http://docs.spring.io/autorepo/docs/spring-security/3.0.x/reference/ns-config.html[Spring
resources].