Adapt assertions to recent changes in Spring Security

See https://github.com/spring-projects/spring-authorization-server/issues/2219
This commit is contained in:
Stéphane Nicoll
2025-10-20 13:49:16 +02:00
parent 94585eaa7c
commit 01ff8f8095
@@ -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