style(AuthorizationServerConfig): 添加客户端和认证用户服务UserDetailService的映射关系注释

This commit is contained in:
有来技术 2021-10-10 10:17:50 +08:00
parent ba86c37ae8
commit ba271d19ce

View File

@ -123,9 +123,9 @@ public class AuthorizationServerConfig extends AuthorizationServerConfigurerAdap
// 多用户体系下刷新token再次认证客户端ID和 UserDetailService 的映射Map // 多用户体系下刷新token再次认证客户端ID和 UserDetailService 的映射Map
Map<String, UserDetailsService> clientUserDetailsServiceMap = new HashMap<>(); Map<String, UserDetailsService> clientUserDetailsServiceMap = new HashMap<>();
clientUserDetailsServiceMap.put(AuthConstants.ADMIN_CLIENT_ID, sysUserDetailsService); clientUserDetailsServiceMap.put(AuthConstants.ADMIN_CLIENT_ID, sysUserDetailsService); // 系统管理客户端
clientUserDetailsServiceMap.put(AuthConstants.APP_CLIENT_ID, memberUserDetailsService); clientUserDetailsServiceMap.put(AuthConstants.APP_CLIENT_ID, memberUserDetailsService); // AndroidIOSH5 移动客户端
clientUserDetailsServiceMap.put(AuthConstants.WEAPP_CLIENT_ID, memberUserDetailsService); clientUserDetailsServiceMap.put(AuthConstants.WEAPP_CLIENT_ID, memberUserDetailsService); // 微信小程序客户端
// 重写刷新token再次认证的 AuthenticationManager中 UserDetailService根据客户端ID和认证方式获取用户认证信息 UserDetails // 重写刷新token再次认证的 AuthenticationManager中 UserDetailService根据客户端ID和认证方式获取用户认证信息 UserDetails
PreAuthenticatedAuthenticationProvider provider = new PreAuthenticatedAuthenticationProvider(); PreAuthenticatedAuthenticationProvider provider = new PreAuthenticatedAuthenticationProvider();