ludc
2023-12-12 e50b37ea73d82149cd52646464389bf6010b1d22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.vci.ubcs.code.service;
 
import org.apache.http.auth.AuthenticationException;
 
import javax.servlet.ServletRequest;
 
/**
 * 免密登录服务
 * @author ludc
 * @date 2023/9/11 15:46
 */
public interface IPasswordFreeLoginService {
 
    /**
     * 根据服务名获取端口号
     * @param serviceId
     * @return
     */
    String getGatewayPort(String serviceId);
 
    /**
     * 免密登录,改变当前webservice请求的header
     * @param userName 账号
     * @param servletRequest
     * @return boolean
     * @throws AuthenticationException
     */
    boolean pwdFreeLoginByBoolean(String userName, ServletRequest servletRequest) throws AuthenticationException;
 
    /**
     * 免密登录请求发送
     * @param userName 账号
     * @return 返回token
     * @throws AuthenticationException
     */
    String passwordFreeLogin(String userName) throws AuthenticationException;
 
    /**
     * 单点登录
     * @param empCode
     * @return
     * @throws Exception
     */
    String ssoFreeLogin(String empCode) throws Exception;
 
}