From e1d498a6e753efbc94fe3ea5ffcf92db1e4d9ff3 Mon Sep 17 00:00:00 2001 From: zhaoxiaohao <279049017@qq.com> Date: Wed, 31 Mar 2021 18:45:00 +0800 Subject: [PATCH] 添加clientid glssz --- kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/config/AuthorizationServerConfig.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/config/AuthorizationServerConfig.java b/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/config/AuthorizationServerConfig.java index c4c32b6..70df892 100644 --- a/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/config/AuthorizationServerConfig.java +++ b/kidgrow-uaa/kidgrow-uaa-server/src/main/java/com/kidgrow/oauth2/config/AuthorizationServerConfig.java @@ -80,8 +80,8 @@ private RandomValueAuthorizationCodeServices authorizationCodeServices; @Autowired private AuthenticationProvider daoAuhthenticationOauthProvider; - @Autowired - private SingleTokenServices tokenServices; +// @Autowired +// private SingleTokenServices tokenServices; /** @@ -107,7 +107,7 @@ @Override public Authentication authenticate(Authentication authentication) throws AuthenticationException { String token = (String) authentication.getPrincipal(); - OAuth2Authentication auth = tokenServices.loadAuthentication(token); + OAuth2Authentication auth = KidgrowTokenServices().loadAuthentication(token); if (auth == null) { throw new InvalidTokenException("Invalid token: " + token); } -- Gitblit v1.8.0