Skip to content

Commit 01ff8f8

Browse files
committed
Adapt assertions to recent changes in Spring Security
See spring-projects/spring-authorization-server#2219
1 parent 94585ea commit 01ff8f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-oauth2-authorization-server/src/test/java/smoketest/oauth2/server/SampleOAuth2AuthorizationServerApplicationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ void openidConfigurationShouldAllowAccess() {
7070
assertThat(config.getTokenRevocationEndpoint()).hasToString("https://provider.com/revoke");
7171
assertThat(config.getEndSessionEndpoint()).hasToString("https://provider.com/logout");
7272
assertThat(config.getTokenIntrospectionEndpoint()).hasToString("https://provider.com/introspect");
73-
assertThat(config.getPushedAuthorizationRequestEndpoint()).hasToString("https://provider.com/par");
7473
assertThat(config.getUserInfoEndpoint()).hasToString("https://provider.com/user");
75-
// OIDC Client Registration is disabled by default
74+
// PAR endpoint and OIDC Client Registration are disabled by default
7675
assertThat(config.getClientRegistrationEndpoint()).isNull();
76+
assertThat(config.getPushedAuthorizationRequestEndpoint()).isNull();
7777
}
7878

7979
@Test
@@ -89,9 +89,9 @@ void authServerMetadataShouldAllowAccess() {
8989
assertThat(config.getJwkSetUrl()).hasToString("https://provider.com/jwks");
9090
assertThat(config.getTokenRevocationEndpoint()).hasToString("https://provider.com/revoke");
9191
assertThat(config.getTokenIntrospectionEndpoint()).hasToString("https://provider.com/introspect");
92-
assertThat(config.getPushedAuthorizationRequestEndpoint()).hasToString("https://provider.com/par");
93-
// OIDC Client Registration is disabled by default
92+
// PAR endpoint and OIDC Client Registration are disabled by default
9493
assertThat(config.getClientRegistrationEndpoint()).isNull();
94+
assertThat(config.getPushedAuthorizationRequestEndpoint()).isNull();
9595
}
9696

9797
@Test

0 commit comments

Comments
 (0)