Skip to content

Commit 2aaf612

Browse files
committed
Fix tests
Related gh-1468
1 parent 8e8dd22 commit 2aaf612

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

oauth2-authorization-server/src/test/java/org/springframework/security/oauth2/server/authorization/config/annotation/web/configurers/OAuth2AuthorizationCodeGrantTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,9 +442,9 @@ public void requestWhenPublicClientWithPkceAndCustomRefreshTokenGeneratorThenRet
442442
this.registeredClientRepository.save(registeredClient);
443443

444444
MvcResult mvcResult = this.mvc.perform(get(DEFAULT_AUTHORIZATION_ENDPOINT_URI)
445-
.params(getAuthorizationRequestParameters(registeredClient))
446-
.param(PkceParameterNames.CODE_CHALLENGE, S256_CODE_CHALLENGE)
447-
.param(PkceParameterNames.CODE_CHALLENGE_METHOD, "S256")
445+
.queryParams(getAuthorizationRequestParameters(registeredClient))
446+
.queryParam(PkceParameterNames.CODE_CHALLENGE, S256_CODE_CHALLENGE)
447+
.queryParam(PkceParameterNames.CODE_CHALLENGE_METHOD, "S256")
448448
.with(user("user")))
449449
.andExpect(status().is3xxRedirection())
450450
.andReturn();

oauth2-authorization-server/src/test/java/org/springframework/security/oauth2/server/authorization/config/annotation/web/configurers/OidcTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public void requestWhenAuthenticationRequestWithOfflineAccessScopeThenTokenRespo
456456

457457
MultiValueMap<String, String> authorizationRequestParameters = getAuthorizationRequestParameters(registeredClient);
458458
MvcResult mvcResult = this.mvc.perform(get(DEFAULT_AUTHORIZATION_ENDPOINT_URI)
459-
.params(authorizationRequestParameters)
459+
.queryParams(authorizationRequestParameters)
460460
.with(user("user")))
461461
.andExpect(status().is3xxRedirection())
462462
.andReturn();
@@ -495,7 +495,7 @@ public void requestWhenAuthenticationRequestWithoutOfflineAccessScopeThenTokenRe
495495

496496
MultiValueMap<String, String> authorizationRequestParameters = getAuthorizationRequestParameters(registeredClient);
497497
MvcResult mvcResult = this.mvc.perform(get(DEFAULT_AUTHORIZATION_ENDPOINT_URI)
498-
.params(authorizationRequestParameters)
498+
.queryParams(authorizationRequestParameters)
499499
.with(user("user")))
500500
.andExpect(status().is3xxRedirection())
501501
.andReturn();

0 commit comments

Comments
 (0)