Provide configuration for the authorization endpoint

Closes gh-342
This commit is contained in:
Joe Grandja
2021-07-06 16:03:06 -04:00
parent fb276e7a4a
commit 9def059e29
5 changed files with 302 additions and 60 deletions

View File

@@ -54,7 +54,10 @@ public class AuthorizationServerConfig {
public SecurityFilterChain authorizationServerSecurityFilterChain(HttpSecurity http) throws Exception {
OAuth2AuthorizationServerConfigurer<HttpSecurity> authorizationServerConfigurer =
new OAuth2AuthorizationServerConfigurer<>();
authorizationServerConfigurer.consentPage("/oauth2/consent");
authorizationServerConfigurer
.authorizationEndpoint(authorizationEndpoint ->
authorizationEndpoint.consentPage("/oauth2/consent"));
RequestMatcher endpointsMatcher = authorizationServerConfigurer
.getEndpointsMatcher();