From 96b0084864c8506d83543f609e84f8524b40b120 Mon Sep 17 00:00:00 2001 From: Erik Lumme Date: Tue, 12 Sep 2017 13:06:05 +0300 Subject: [PATCH] Migrate Vaadin7SpringSecurityBaseAuthentication --- ...pringSecurityBaseAuthentification.asciidoc | 65 +++++++++++++++++++ documentation/articles/contents.asciidoc | 1 + 2 files changed, 66 insertions(+) create mode 100644 documentation/articles/Vaadin7SpringSecurityBaseAuthentification.asciidoc diff --git a/documentation/articles/Vaadin7SpringSecurityBaseAuthentification.asciidoc b/documentation/articles/Vaadin7SpringSecurityBaseAuthentification.asciidoc new file mode 100644 index 0000000000..b43540bc29 --- /dev/null +++ b/documentation/articles/Vaadin7SpringSecurityBaseAuthentification.asciidoc @@ -0,0 +1,65 @@ +[[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 authentification. + +[[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]. diff --git a/documentation/articles/contents.asciidoc b/documentation/articles/contents.asciidoc index 284cef17df..95199c7bb8 100644 --- a/documentation/articles/contents.asciidoc +++ b/documentation/articles/contents.asciidoc @@ -50,4 +50,5 @@ are great, too. - link:ExposingServerSideAPIToJavaScript.asciidoc[Exposing server-side API to JavaScript] - link:UsingRPCFromJavaScript.asciidoc[Using RPC from JavaScript] - link:IBGettingStartedWithVaadinSpringWithoutSpringBoot.asciidoc[I b - Getting started with Vaadin Spring withoout Spring Boot] +- link:Vaadin7SpringSecurityBaseAuthentification.asciidoc[Vaadin 7 + Spring Security (base authentication)] - link:CreatingAUIExtension.asciidoc[Creating a UI extension] -- 2.39.5