Skip to content

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

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

Closed
eleftherias opened this issue Jul 16, 2019 · 0 comments · Fixed by #7121
Closed

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

eleftherias opened this issue Jul 16, 2019 · 0 comments · Fixed by #7121
Assignees
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Milestone

Comments

@eleftherias
Copy link
Contributor

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.

@eleftherias eleftherias added in: config An issue in spring-security-config type: enhancement A general enhancement labels Jul 16, 2019
@eleftherias eleftherias self-assigned this Jul 16, 2019
@eleftherias eleftherias added this to the 5.2.0.RC1 milestone Jul 18, 2019
eleftherias added a commit to eleftherias/spring-security that referenced this issue Jul 23, 2019
@rwinch rwinch modified the milestones: 5.2.0.RC1, 5.2.0.M4 Jul 23, 2019
rwinch pushed a commit that referenced this issue Jul 23, 2019
kostya05983 pushed a commit to kostya05983/spring-security that referenced this issue Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants