提交 d7d2ebda authored 作者: husishuai's avatar husishuai

新增重定向注释

上级 231cc987
......@@ -8,6 +8,7 @@ package com.atlassian.jira.security.sso;
import cn.hutool.cache.CacheUtil;
import cn.hutool.cache.impl.TimedCache;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.text.CharSequenceUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpResponse;
......@@ -67,13 +68,16 @@ public class SSOSeraphAuthenticator extends DefaultAuthenticator {
// 1 通过ip获取用户信息
// String clientIp = IpUtil.getClientIp(httpServletRequest);
// if (StrUtil.isBlank(clientIp)) {
// LoginReason.AUTHENTICATION_DENIED.stampRequestResponse(httpServletRequest, httpServletResponse);
// // 重定向到auap登录页
// httpServletResponse.sendRedirect("http://www.baidu.com");
// return false;
// }
// 2 检查uap是否登录
// CheckLoginResult checkLoginResult = AuapUserService.checkLogin(clientIp);
// if (BeanUtil.isEmpty(checkLoginResult)) {
// // 重定向到auap登录页
// httpServletResponse.sendRedirect("http://www.baidu.com");
// return false;
// }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论