1
0
mirror of synced 2026-08-04 09:17:02 +00:00

Add support for custom authorization request parameters

Fixes gh-4911
This commit is contained in:
Joe Grandja
2018-06-30 20:21:02 -04:00
committed by Rob Winch
parent a3210c96d9
commit 779597af2a
12 changed files with 867 additions and 423 deletions
@@ -88,7 +88,7 @@ public class OAuth2AuthorizationCodeGrantApplicationTests {
MvcResult mvcResult = this.mockMvc.perform(get("/repos").with(user("user")))
.andExpect(status().is3xxRedirection())
.andReturn();
assertThat(mvcResult.getResponse().getRedirectedUrl()).matches("https://github.com/login/oauth/authorize\\?response_type=code&client_id=your-app-client-id&scope=public_repo&state=.{15,}&redirect_uri=http://localhost/github-repos");
assertThat(mvcResult.getResponse().getRedirectedUrl()).matches("https://github.com/login/oauth/authorize\\?response_type=code&client_id=your-app-client-id&scope=public_repo&state=.{15,}&redirect_uri=http%3A%2F%2Flocalhost%2Fgithub-repos");
}
@Test