Adapt to changed default login redirect URL in OAuth 2 Client support

See https://github.com/spring-projects/spring-security/issues/4687
See gh-10705
This commit is contained in:
Andy Wilkinson 2017-10-27 09:19:57 +01:00
parent ee2550ad7d
commit 37392c0ec8
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ public class OAuth2ClientPropertiesRegistrationAdapterTests {
assertThat(adapted.getAuthorizationGrantType()).isEqualTo(
org.springframework.security.oauth2.core.AuthorizationGrantType.AUTHORIZATION_CODE);
assertThat(adapted.getRedirectUri()).isEqualTo(
"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/{registrationId}");
"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/code/{registrationId}");
assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email",
"address", "phone");
assertThat(adapted.getClientName()).isEqualTo("Google");
@ -195,7 +195,7 @@ public class OAuth2ClientPropertiesRegistrationAdapterTests {
assertThat(adapted.getAuthorizationGrantType()).isEqualTo(
org.springframework.security.oauth2.core.AuthorizationGrantType.AUTHORIZATION_CODE);
assertThat(adapted.getRedirectUri()).isEqualTo(
"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/{registrationId}");
"{scheme}://{serverName}:{serverPort}{contextPath}/login/oauth2/code/{registrationId}");
assertThat(adapted.getScopes()).containsExactly("openid", "profile", "email",
"address", "phone");
assertThat(adapted.getClientName()).isEqualTo("Google");