When starting the Spring Boot application, an error occurs during the context initialization related to an incompatible method call. The application fails to start due to a missing method in AuthorizationServerSettings$Builder.

Error Message

Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizationServerSettings' defined in class path resource [org/springframework/boot/autoconfigure/security/oauth2/server/servlet/OAuth2AuthorizationServerConfiguration.class]: Failed to instantiate [org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings]: Factory method 'authorizationServerSettings' threw exception with message: 'org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings$Builder org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings$Builder.multipleIssuersAllowed(boolean)'

Environment

Spring Boot Version: 3.3.2 Spring Security OAuth2 Authorization Server Version: 1.1.0 Java Version: 21.0.3 Build Tool: Maven Steps to Reproduce Add the spring-security-oauth2-authorization-server dependency with version 1.1.0 to a Spring Boot 3.3.2 project. Start the Spring Boot application. Observe the error during the initialization of the application context. Expected Behavior The application should start successfully without encountering method incompatibility issues.

Additional Information

This issue appears to be related to version incompatibility between Spring Boot 3.3.2 and spring-security-oauth2-authorization-server 1.1.0. The method multipleIssuersAllowed(boolean) seems to be missing in the version of the AuthorizationServerSettings$Builder class being used.

Possible Solution Consider updating the spring-security-oauth2-authorization-server dependency to a version compatible with Spring Boot 3.3.2 or adjusting the Spring Boot version if necessary. Alternatively, check for known issues or updates related to these versions.

Comment From: snicoll

Expected Behavior The application should start successfully without encountering method incompatibility issues.

Spring Boot 3.3.2 manages Spring Security OAuth2 Authorization Server Version: 1.3.1. If you decide to use another version, you need to make sure it is compatible with it.

Why did you use 1.1.0 and what made you believe it should work with that Spring Boot version?

Comment From: spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

Comment From: spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.