提交 99bff38f authored 作者: inroi's avatar inroi

微调

上级 86a92616
......@@ -174,7 +174,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
......@@ -185,14 +184,17 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<fork>true</fork>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
</plugin>
</plugins>
<resources>
<resource>
......
......@@ -36,7 +36,7 @@ public class EasController {
System.out.println("password: " + password);
//生成EAS单点登录地址
String url = "http://192.168.2.219:6888/portal/index2sso.jsp?username=" + ssoUsername + "&password=" + password + "&redirectTo=" + redirectTo + "&isNotCheckRelogin=true";
String url = "http://172.16.1.72:8090/portal/index2sso.jsp?username=" + ssoUsername + "&password=" + password + "&redirectTo=" + redirectTo + "&isNotCheckRelogin=true";
//验证Token
LtpaTokenManager.isValid(password);
System.out.println(url);
......@@ -51,13 +51,16 @@ public class EasController {
String redirectTo = URLEncoder.encode(shrLocal);
//登陆用户名
String username = "user";
String ssoUsername = ThreadLocalConfig.get().get("ssoUsername").toString();
if (StringUtil.isBlank(ssoUsername)) {
return;
}
//根据密钥生成的密码串
String password = LtpaTokenManager.generate(username, LtpaTokenManager.getDefaultLtpaConfig(), "OTP").toString();
String password = LtpaTokenManager.generate(ssoUsername, LtpaTokenManager.getDefaultLtpaConfig(), "OTP").toString();
System.out.println("password: " + password);
//生成SHR单点登录地址
String url = "http://192.168.2.219:6888/shr/OTP2sso.jsp?username=" + username + "&password=" + password + "&redirectTo=" + redirectTo + "&userAuthPattern=OTP&isNotCheckRelogin=true";
String url = "http://172.16.1.72:8090/shr/OTP2sso.jsp?username=" + ssoUsername + "&password=" + password + "&redirectTo=" + redirectTo + "&userAuthPattern=OTP&isNotCheckRelogin=true";
//验证Token
LtpaTokenManager.isValid(password);
System.out.println(url);
......
......@@ -33,7 +33,7 @@ public class VerifyTicketServlet extends HttpServlet {
}
// 认证服务器地址
String authServerIp = "10.3.40.239";
String authServerIp = "10.10.12.1:80";
// 认证服务器端口
String authServerPort = "80";
......
......@@ -20,9 +20,9 @@ spring:
max-file-size: 100MB
datasource:
url: jdbc:mysql://shr-mysql:3306/shr_server?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: root
password: gf^*i6%&9J83&(*kJ653F&L
url: jdbc:mysql://127.0.0.1:3306/shr_server?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true
username: inori
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
mybatis-plus:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论