-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Minimal configuration doesn't work with Spring Boot 3.2.0 #1475
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
Comments
An additional note here. This change in the behavior is explained in the Boot 3.2 Release notes:
And the So, I now created an issue in the Spring Boot project: spring-projects/spring-boot#38864 Since I guess it's on their side to decide first if they want to contemplate the Spring Authorization Server minimal config for that feature, or if they want to leave it as it is (and then we'll have to update the instructions, indicating to add a |
Thanks for the details @Corke123 @rozagerardo. I was able to reproduce the same issue on my end. I'm going to hold off on any changes for now until we see what happens in spring-projects/spring-boot#38864 |
Quick update on spring-projects/spring-boot#38864 @jgrandja @Corke123 in case you want to have a look at that or comment about the decision:
|
Thanks for the update @rozagerardo. This issue should be resolved when Spring Boot |
You're welcome @jgrandja . One last question here, with the Mainly to avoid having users complain that the setup we show is not working out-of-the-box. If they have some basic Spring Security knowledge they will understand the purpose of these properties and what they imply. |
Good catch! Yes, we do need to add it. Let me know if you're interested in submitting a PR for this? |
With Boot 3.2.0 the auto-configured InMemoryUserDetailsManager bean (used by our minimal configuration) is backing-off because we include the spring-security-oauth2-resource-server dependency, and with an additional condition introduced since 3.2.2 - if none of the spring.security.user name or password properties is present in the setup. With this update in the minimal configuration guidelines, the service is starting correctly. Fixes spring-projectsgh-1475
Sorry for the delay @jgrandja Sure, I now submitted the following PR: #1519 Boot 3.2 Release Notes indicate that just one of the user properties has to be present to prevent backing-off the I didn't create a draft PR because the Contributor guidelines indicate it is not necessary for minor changes. And I didn't include any additional note in the docs to keep the changes to a minimum and because we're already indicating "Beyond the Getting Started experience, most users will want to customize the default configuration." and I consider this covers the security user setup as well. Of course, let me know if anything else is needed here. Have a nice day :) |
This is now fixed in Spring Boot 3.2.2. See spring-projects/spring-boot#38864 The samples have been updated to |
Describe the bug
Setting up Spring Authorization Server with minimal configuration as per documentation from here doesn't work with Spring OAuth Client.
The login request fails with message:
This works fine with Spring Boot version 3.1.3.
Stacktrace:
To make it work following configuration is neccessary:
To Reproduce
Expected behavior
The user successfully logged in.
Sample
A link to a GitHub repository with a minimal, reproducible sample.
The text was updated successfully, but these errors were encountered: