From ba271d19ced534feb96306cd8a159663d1fdec88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=89=E6=9D=A5=E6=8A=80=E6=9C=AF?= <1490493387@qq.com> Date: Sun, 10 Oct 2021 10:17:50 +0800 Subject: [PATCH] =?UTF-8?q?style(AuthorizationServerConfig):=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=92=8C=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9C=8D=E5=8A=A1UserDetailService=E7=9A=84?= =?UTF-8?q?=E6=98=A0=E5=B0=84=E5=85=B3=E7=B3=BB=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../auth/security/config/AuthorizationServerConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youlai-auth/src/main/java/com/youlai/auth/security/config/AuthorizationServerConfig.java b/youlai-auth/src/main/java/com/youlai/auth/security/config/AuthorizationServerConfig.java index 49d2431e8..a4e00afd6 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/security/config/AuthorizationServerConfig.java +++ b/youlai-auth/src/main/java/com/youlai/auth/security/config/AuthorizationServerConfig.java @@ -123,9 +123,9 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap // 多用户体系下,刷新token再次认证客户端ID和 UserDetailService 的映射Map Map clientUserDetailsServiceMap = new HashMap<>(); - clientUserDetailsServiceMap.put(AuthConstants.ADMIN_CLIENT_ID, sysUserDetailsService); - clientUserDetailsServiceMap.put(AuthConstants.APP_CLIENT_ID, memberUserDetailsService); - clientUserDetailsServiceMap.put(AuthConstants.WEAPP_CLIENT_ID, memberUserDetailsService); + clientUserDetailsServiceMap.put(AuthConstants.ADMIN_CLIENT_ID, sysUserDetailsService); // 系统管理客户端 + clientUserDetailsServiceMap.put(AuthConstants.APP_CLIENT_ID, memberUserDetailsService); // Android、IOS、H5 移动客户端 + clientUserDetailsServiceMap.put(AuthConstants.WEAPP_CLIENT_ID, memberUserDetailsService); // 微信小程序客户端 // 重写刷新token再次认证的 AuthenticationManager中 的 UserDetailService,根据客户端ID和认证方式获取用户认证信息 UserDetails PreAuthenticatedAuthenticationProvider provider = new PreAuthenticatedAuthenticationProvider();