Skip to content

Commit

Permalink
Merge branch '6.0.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
jzheaux committed May 18, 2023
2 parents 2029296 + cdac708 commit 0e3ee89
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,18 @@ public class OAuth2ClientSecurityConfig {
.authorizationRequestRepository(this.authorizationRequestRepository())
...
)
);
return http.build();
.oauth2Login(oauth2 -> oauth2
.authorizationEndpoint(endpoint -> endpoint
.authorizationRequestRepository(this.authorizationRequestRepository())
...
)
).build();
}
@Bean
public AuthorizationRequestRepository<OAuth2AuthorizationRequest> authorizationRequestRepository() {
return new CustomOAuth2AuthorizationRequestRepository();
}
}
----
Expand Down

0 comments on commit 0e3ee89

Please sign in to comment.