Vaadin using SpringSecurity

Currently, training Vaadin8 + SpringBoot for Vaadin has made me forget about HTML for a while. In any case, all is well for some CRUD operations, until I mixed SpringSecurity in the project. Well, I’ve been looking for several days already, and no solution could meet the expected requirements well.

Expected Result:

  • Vaadin8 + SpringBoot + SpringSecurity
  • All in one project / module / artifact
  • 2 @SpringUI( MainUI= ", LoginUI=" / login ")
  • Several @SpringViewcontained inMainUI ViewDisplay

Limitations:

  • No login.html(from demo backery application )
  • No SpringMVC for login page
  • No dependency on vaadin4Spring
  • Configurations done via annotations rather than XML

I know that there is a way, I am blocked how to move along this path. And if this is really impossible, you need to understand why this is not so.

+6
source share
1 answer

When configuring Spring Security, you must allow anonymous access to the URL /login(either login.htmlif it is a non-vaadina form, or the path to the login interface if you want to use a separate login interface). You also need to restrict access to the actual user interface of the application. It is also necessary to allow anonymous access to static resources (i.e. /VAADIN/**).

SecurityConfig Bakery . (: )

, Vaadin Spring (.. no spring -boot).

+1

All Articles