Skip to content

Commit 97952b7

Browse files
committed
Cleanup
1 parent a7ef58a commit 97952b7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-social/src/main/java/com/example/springsocial/config/AppProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@ConfigurationProperties(prefix = "app")
99
public class AppProperties {
1010
private final Auth auth = new Auth();
11-
private final OAuth2 oAuth2 = new OAuth2();
11+
private final OAuth2 oauth2 = new OAuth2();
1212

1313
public static class Auth {
1414
private String tokenSecret;
@@ -48,7 +48,7 @@ public Auth getAuth() {
4848
return auth;
4949
}
5050

51-
public OAuth2 getoAuth2() {
52-
return oAuth2;
51+
public OAuth2 getOauth2() {
52+
return oauth2;
5353
}
5454
}

spring-social/src/main/java/com/example/springsocial/security/oauth2/Oauth2AuthenticationSuccessHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected void clearAuthenticationAttributes(HttpServletRequest request, HttpSer
7070
private boolean isAuthorizedRedirectUri(String uri) {
7171
URI clientRedirectUri = URI.create(uri);
7272

73-
return appProperties.getoAuth2().getAuthorizedRedirectUris()
73+
return appProperties.getOauth2().getAuthorizedRedirectUris()
7474
.stream()
7575
.anyMatch(authorizedRedirectUri -> {
7676
// Only validate host and port. Let the clients use different paths if they want to

0 commit comments

Comments
 (0)