From 01ff8f809575ecf3d9f2bd19457a31437e5da2d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 20 Oct 2025 13:49:16 +0200 Subject: [PATCH] Adapt assertions to recent changes in Spring Security See https://github.com/spring-projects/spring-authorization-server/issues/2219 --- .../SampleOAuth2AuthorizationServerApplicationTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-authorization-server/src/test/java/smoketest/oauth2/server/SampleOAuth2AuthorizationServerApplicationTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-authorization-server/src/test/java/smoketest/oauth2/server/SampleOAuth2AuthorizationServerApplicationTests.java index e6193137a62..dd5e6d18e6a 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-authorization-server/src/test/java/smoketest/oauth2/server/SampleOAuth2AuthorizationServerApplicationTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-authorization-server/src/test/java/smoketest/oauth2/server/SampleOAuth2AuthorizationServerApplicationTests.java @@ -70,10 +70,10 @@ class SampleOAuth2AuthorizationServerApplicationTests { assertThat(config.getTokenRevocationEndpoint()).hasToString("https://provider.com/revoke"); assertThat(config.getEndSessionEndpoint()).hasToString("https://provider.com/logout"); assertThat(config.getTokenIntrospectionEndpoint()).hasToString("https://provider.com/introspect"); - assertThat(config.getPushedAuthorizationRequestEndpoint()).hasToString("https://provider.com/par"); assertThat(config.getUserInfoEndpoint()).hasToString("https://provider.com/user"); - // OIDC Client Registration is disabled by default + // PAR endpoint and OIDC Client Registration are disabled by default assertThat(config.getClientRegistrationEndpoint()).isNull(); + assertThat(config.getPushedAuthorizationRequestEndpoint()).isNull(); } @Test @@ -89,9 +89,9 @@ class SampleOAuth2AuthorizationServerApplicationTests { assertThat(config.getJwkSetUrl()).hasToString("https://provider.com/jwks"); assertThat(config.getTokenRevocationEndpoint()).hasToString("https://provider.com/revoke"); assertThat(config.getTokenIntrospectionEndpoint()).hasToString("https://provider.com/introspect"); - assertThat(config.getPushedAuthorizationRequestEndpoint()).hasToString("https://provider.com/par"); - // OIDC Client Registration is disabled by default + // PAR endpoint and OIDC Client Registration are disabled by default assertThat(config.getClientRegistrationEndpoint()).isNull(); + assertThat(config.getPushedAuthorizationRequestEndpoint()).isNull(); } @Test