Expose login page config for oauth2Login

Fixes gh-4570
This commit is contained in:
Joe Grandja 2017-10-10 17:52:47 -04:00
parent bd4d814e4b
commit 6963b3c5d5
1 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,12 @@ public final class OAuth2LoginConfigurer<B extends HttpSecurityBuilder<B>> exten
return this;
}
@Override
public OAuth2LoginConfigurer<B> loginPage(String loginPage) {
Assert.hasText(loginPage, "loginPage cannot be empty");
return super.loginPage(loginPage);
}
public AuthorizationEndpointConfig authorizationEndpoint() {
return this.authorizationEndpointConfig;
}