1 Star 0 Fork 37

benxiaohai52 / oauth2-auth-server-oidc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
UniLoginUserDetailsService.java 1.18 KB
一键复制 编辑 原始数据 按行查看 历史
跑马灯 提交于 2022-03-14 20:01 . 项目初始化
package com.luo.sc.oidc.authserver.handler.login;
import org.springframework.security.core.AuthenticationException;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import java.util.Map;
/**
* 通用登录 - 用户查询及认证服务
*
* @author luohq
* @version 1.0.0
* @date 2022-03-03
* @see org.springframework.security.core.userdetails.UserDetailsService
* @see org.springframework.security.authentication.dao.AbstractUserDetailsAuthenticationProvider
*/
public interface UniLoginUserDetailsService {
/**
* 根据认证form参数查询用户信息
*
* @param authParams form参数
* @return 用户信息
* @throws UsernameNotFoundException
*/
UniLoginUserDetails loadUserByAuthParams(Map<String, String> authParams) throws UsernameNotFoundException;
/**
* 认证用户(即form参数和用户信息中的凭证是否匹配等)
*
* @param authParams form参数
* @param uniLoginUserDetails 用户信息
* @throws AuthenticationException
*/
void authenticateUser(Map<String, String> authParams, UniLoginUserDetails uniLoginUserDetails) throws AuthenticationException;
}
1
https://gitee.com/benxiaohai52/oauth2-auth-server-oidc.git
git@gitee.com:benxiaohai52/oauth2-auth-server-oidc.git
benxiaohai52
oauth2-auth-server-oidc
oauth2-auth-server-oidc
main

搜索帮助