Skip to content

Add support for nested builders in the DSL for reactive apps #7107

Closed
@eleftherias

Description

@eleftherias

Allow spring security for reactive apps to be configured using a nested buider, taking advantage of Java 8 lambdas.

An example configuration would look like this:

http
	.authorizeExchange(exchanges ->
		exchanges
			.anyExchange().authenticated()
	)
	.formLogin(formLogin ->
		formLogin
			.loginPage("/custom-login")
	)
	.redirectToHttps(redirectToHttps ->
		redirectToHttps
			.httpsRedirectWhen(new PathPatternParserServerWebExchangeMatcher("/secure"))
	);

Relates to gh-5557.

Metadata

Metadata

Assignees

Labels

in: configAn issue in spring-security-configtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions