Skip to content

Commit 4730692

Browse files
John Rodriguezdsyer
authored andcommitted
Fix code typos in tutorials
1 parent 8bf0e32 commit 4730692

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

github/README.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

manual/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
...

0 commit comments

Comments
 (0)