Authentication authentication = SecurityContextHolder.getContext().getAuthentication(); Object details = authentication.getDetails();
Spring Security 与 OAuth2(相关类参考)
原文:https://www.cnblogs.com/grimm/p/13518190.html