Fix to ensure endpoints distinguish between form and query parameters

Closes gh-1451
This commit is contained in:
Greg Li
2023-12-05 16:40:25 +08:00
committed by Joe Grandja
parent 639fe93544
commit 4bc0df5ef8
15 changed files with 105 additions and 67 deletions

View File

@@ -94,7 +94,7 @@ public class AuthorizationCodeGrantFlow {
parameters.set(OAuth2ParameterNames.STATE, "state");
MvcResult mvcResult = this.mockMvc.perform(get("/oauth2/authorize")
.params(parameters)
.queryParams(parameters)
.with(user(this.username).roles("USER")))
.andExpect(status().isOk())
.andExpect(header().string("content-type", containsString(MediaType.TEXT_HTML_VALUE)))