Fix to ensure endpoints distinguish between form and query parameters
Closes gh-1451
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user