From 4c328db8d5ae415c7086a2740d6b1c5c36a4812c Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期四, 12 十月 2023 17:08:28 +0800 Subject: [PATCH] 1、修改在业务数据增加时验证相应的codeallcode表中ID与业务类型相同的数据是否存在。 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java index b7f5780..8f1409d 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/IPasswordFreeLoginService.java @@ -3,7 +3,6 @@ import org.apache.http.auth.AuthenticationException; import javax.servlet.ServletRequest; -import javax.servlet.http.HttpServletRequest; /** * 鍏嶅瘑鐧诲綍鏈嶅姟 @@ -20,10 +19,28 @@ String getGatewayPort(String serviceId); /** - * 鍏嶅瘑鐧诲綍鏂规硶 - * @param username 璐﹀彿 - * @return + * 鍏嶅瘑鐧诲綍锛屾敼鍙樺綋鍓峸ebservice璇锋眰鐨刪eader + * @param userName 璐﹀彿 + * @param servletRequest + * @return boolean + * @throws AuthenticationException */ - boolean passwordFreeLogin(String username, ServletRequest request) 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; } -- Gitblit v1.9.3