mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2025-01-03 17:42:20 +08:00
style(AuthorizationServerConfig): 添加客户端和认证用户服务UserDetailService的映射关系注释
This commit is contained in:
parent
ba86c37ae8
commit
ba271d19ce
@ -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); // Android、IOS、H5 移动客户端
|
||||||
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user