vaadin / quarkus

An extension to Quarkus to support Vaadin Flow
Apache License 2.0
28 stars 3 forks source link

Register and enable View-based access control for Quarkus #142

Open mshabarov opened 7 months ago

mshabarov commented 7 months ago

View-based access control Vaadin feature is enabled automatically in Spring-based Vaadin applications if an extension of VaadinWebSecurity class is configured.

Same approach can be done for Quarkus applications, so that developers don't need to instantiate ViewAccessChecker explicitly and create their own VaadinServiceInitListener.

See this comment and this solution for more context.

mcollovati commented 4 months ago

A couple of additional notes:

Probably not in the scope of this ticket, but additional improvement borrowed from Vaadin and Spring Security integration could be:

Here's the link to a repository with an example of integration of Quarkus Security with Vaadin. It is a bit outdated, but may help to give an idea for a potential implementation: https://github.com/mcollovati/flow-quarkus-security-example/tree/main