Skip to content

Custom DSL Support for Webflux Security #17810

@matthew-js-porter

Description

@matthew-js-porter

Expected Behavior

The Servlet HttpSecurity builder supports defining a custom DSL that can be applied with the
with method.

Example:

@Configuration
@EnableWebSecurity
public class Config {
	@Bean
	public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
		http
			.with(MyCustomDsl.customDsl(), (dsl) -> dsl
				.flag(true)
			)
			// ...
		return http.build();
	}
}

It would be nice if the same could be achieved with Webflux Security and ServerHttpSecurity.

Current Behavior

Currently ServerHttpSecurity does not provide this functionality.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions