spring icon indicating copy to clipboard operation
spring copied to clipboard

Spring Security support for Vaadin Spring add-on (Flow version)

Open vaadin-bot opened this issue 7 years ago • 5 comments

Originally by Matti Tahvonen on 2015-09-08 17:15:44 +0300


Spring Security is a commonly used library in Spring based software stacks. Vaadin Spring (or its submodule) should contain helpers to make integrations with Vaadin UIs easier. This has already been experimented quite a lot in vaadin4spring and something similar should be brought into the official Vaadin Spring library.

See: https://github.com/peholmst/vaadin4spring/tree/master/extensions/security


Imported from https://dev.vaadin.com/ issue #18817

vaadin-bot avatar Sep 20 '16 12:09 vaadin-bot

Got a hint that org.springframework.boot.actuate.autoconfigure.security.EndpointRequest might be quite close to how we would want to deal with whitelisting access to static resources.

Legioth avatar Aug 14 '18 08:08 Legioth

For the old Vaadin 8 implementation check https://github.com/peholmst/vaadin4spring/tree/28e454032301e7f79a3f0d2e61a984d00b5ba1e4/extensions/security

Extensions have been deleted in master.

paulroemer avatar Jan 07 '20 10:01 paulroemer

Is there any update to this? The current guide on how to implement security is in my opinion quite hacky and manual.

bram-pkg avatar Feb 09 '20 14:02 bram-pkg

There is a series of tutorial for newest framework versions here

https://vaadin.com/learn/tutorials/securing-your-app-with-spring-security

TatuLund avatar Feb 09 '20 15:02 TatuLund

This is what I meant, back in Vaadin 8 you could use the @Secured annotation on Views. Is something similar to this planned?

It would be really nice to see support for the Spring Security annotations like the one mentioned earlier or @PreAuthorize()

bram-pkg avatar Feb 09 '20 16:02 bram-pkg

@mstahv this issue is now covered by View-based access checker feature in Flow, so I propose to close it. What do you think?

mshabarov avatar Sep 12 '23 06:09 mshabarov

This is done and done.

mstahv avatar Sep 12 '23 15:09 mstahv