Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vaadin Web Security integration improvements #4382

Open
3 of 14 tasks
mshabarov opened this issue Aug 9, 2023 · 2 comments
Open
3 of 14 tasks

Vaadin Web Security integration improvements #4382

mshabarov opened this issue Aug 9, 2023 · 2 comments
Labels
acceptance criteria used for the acceptance criteria checklist draft The acceptance criteria that is still WIP Flow

Comments

@mshabarov mshabarov added acceptance criteria used for the acceptance criteria checklist draft The acceptance criteria that is still WIP labels Aug 9, 2023
@mshabarov mshabarov added this to Roadmap Aug 9, 2023
@github-project-automation github-project-automation bot moved this to Under consideration in Roadmap Aug 9, 2023
@mshabarov mshabarov added the Flow label Aug 9, 2023
@mshabarov mshabarov changed the title AC: Vaadin Web Security integration improvements Vaadin Web Security integration improvements Sep 12, 2023
@knoobie
Copy link
Contributor

knoobie commented Oct 3, 2024

Additional ideas by @archiecobbs vaadin/flow#20092 (comment) to be considered

@mshabarov mshabarov moved this to 🅿️Parking lot in Vaadin Flow ongoing work (Vaadin 10+) Dec 10, 2024
@mshabarov mshabarov moved this from 🅿️Parking lot to 🪵Product backlog in Vaadin Flow ongoing work (Vaadin 10+) Dec 10, 2024
@mshabarov mshabarov moved this from 🪵Product backlog to 🅿️Parking lot in Vaadin Flow ongoing work (Vaadin 10+) Jan 8, 2025
@mshabarov mshabarov moved this from 🅿️Parking lot to 🪵Product backlog in Vaadin Flow ongoing work (Vaadin 10+) Jan 23, 2025
@mcollovati
Copy link
Contributor

A branch with an experimental attempt to integrate Vaadin with Spring Security following the Configurer pattern, to make configuration more flexible.

https://github.com/mstahv/vaadin-with-rest-end-points-and-spring-security/blob/spike/refactor-vaadin-security/src/main/java/com/vaadin/flow/spring/security/VaadinAdvancedSecurityConfigurer.java
https://github.com/mstahv/vaadin-with-rest-end-points-and-spring-security/blob/spike/refactor-vaadin-security/src/main/java/com/vaadin/flow/spring/security/VaadinInternalSecurityConfigurer.java

The result would allow writing something like

    @Bean
    SecurityFilterChain vaadinSecurityConfig(HttpSecurity http)
            throws Exception {
        return http
                .with(VaadinSecurityConfigurer.vaadinAdvanced(),
                        vaadinCfg -> vaadinCfg
                                 .secureAnyRequest(AuthorizeHttpRequestsConfigurer.AuthorizedUrl::authenticated)
                                 .loginView(LoginView.class)
                                .enableAccessControl(true)
                                .authenticationSuccessUrl("/")
                                .logoutUrl("/")
                  ).build();
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
acceptance criteria used for the acceptance criteria checklist draft The acceptance criteria that is still WIP Flow
Projects
Status: Under consideration
Status: 🪵Product backlog
Development

No branches or pull requests

3 participants