diff --git a/click/src/main/java/com/example/SocialApplication.java b/click/src/main/java/com/example/SocialApplication.java index 2f3753b..ce12b85 100644 --- a/click/src/main/java/com/example/SocialApplication.java +++ b/click/src/main/java/com/example/SocialApplication.java @@ -35,7 +35,7 @@ public class SocialApplication extends WebSecurityConfigurerAdapter { @GetMapping("/user") public Map user(@AuthenticationPrincipal OAuth2User principal) { - return Collections.singletonMap("name", principal.getAttribute("name")); + return Collections.singletonMap("name", principal.getAttribute("login")); } @Override