Skip to content

Use Lambda-based API in Spring Security examples #31143

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
wants to merge 1 commit into from
Closed

Use Lambda-based API in Spring Security examples #31143

wants to merge 1 commit into from

Conversation

hpoettker
Copy link
Contributor

This PR is intended to resolve #30432.

I've formatted the Spring Security examples consistently such that

  • the last word of the respective method name is chosen as the variable name in the lambda,
  • withDefaults() is used where no actual Customizer is used,
  • chaining is not used as that is sometimes hard to style nicely if lines are continued.

If a different style is preferred, I'll be happy to change it.

.build();
// @formatter:on
http.requestMatcher(PathRequest.toH2Console());
http.authorizeRequests(yourCustomAuthorization());
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To underline that the console should not be left unsecured without prescribing a security setup as discussed in #29932.

@snicoll
Copy link
Member

snicoll commented Jun 13, 2022

Thanks again @hpoettker

@hpoettker hpoettker deleted the lambda-based-api branch June 13, 2022 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants