File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,16 +45,16 @@ private Filter ssoFilter() {
4545 OAuth2ClientAuthenticationProcessingFilter facebookFilter = new OAuth2ClientAuthenticationProcessingFilter("/login/facebook");
4646 OAuth2RestTemplate facebookTemplate = new OAuth2RestTemplate(facebook(), oauth2ClientContext);
4747 facebookFilter.setRestTemplate(facebookTemplate);
48- UserInfoTokenServices tokenServices = new UserInfoTokenServices(facebook .getUserInfoUri(), facebook().getClientId());
49- tokenServices.setRestTemplate(oAuth2RestTemplate );
48+ UserInfoTokenServices tokenServices = new UserInfoTokenServices(facebookResource() .getUserInfoUri(), facebook().getClientId());
49+ tokenServices.setRestTemplate(facebookTemplate );
5050 facebookFilter.setTokenServices(tokenServices);
5151 filters.add(facebookFilter);
5252
5353 OAuth2ClientAuthenticationProcessingFilter githubFilter = new OAuth2ClientAuthenticationProcessingFilter("/login/github");
5454 OAuth2RestTemplate githubTemplate = new OAuth2RestTemplate(github(), oauth2ClientContext);
5555 githubFilter.setRestTemplate(githubTemplate);
56- tokenServices = new UserInfoTokenServices(github ().getUserInfoUri(), github().getClientId());
57- tokenServices.setRestTemplate(oAuth2RestTemplate );
56+ tokenServices = new UserInfoTokenServices(githubResource ().getUserInfoUri(), github().getClientId());
57+ tokenServices.setRestTemplate(githubTemplate );
5858 githubFilter.setTokenServices(tokenServices);
5959 filters.add(githubFilter);
6060
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public class SocialApplication extends WebSecurityConfigurerAdapter {
5353 protected void configure(HttpSecurity http) throws Exception {
5454 http.antMatcher("/**")
5555 ...
56- .addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
56+ .and(). addFilterBefore(ssoFilter(), BasicAuthenticationFilter.class);
5757 }
5858
5959 ...
You can’t perform that action at this time.
0 commit comments