Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
aa07adeb
Commit
aa07adeb
authored
Apr 12, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
派单优化修改
parent
52dd5ec0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
CASproperties.java
...om/yifu/cloud/plus/v1/yifu/auth/config/CASproperties.java
+3
-5
PasswordDecoderFilter.java
...cloud/plus/v1/yifu/auth/filter/PasswordDecoderFilter.java
+3
-3
No files found.
yifu-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/config/CASproperties.java
View file @
aa07adeb
...
...
@@ -5,14 +5,12 @@ public class CASproperties {
/**
* 当前应用程序的登陆界面
*/
public
static
String
CLIENT_LOGIN_PAGE
=
"http
s://qas-mvp-1.worfu
.com/login"
;
public
static
String
CLIENT_LOGIN_PAGE
=
"http
://mvp.wanxinwork
.com/login"
;
/**
* CAS服务器地址
*/
public
static
String
CAS_SERVER_PATH
=
"http://192.168.1.62:8443/cas"
;
public
static
String
SPRING_SECURITY_CAS_SERVER
=
"http://192.168.1.62:8443/cas/v1/tickets"
;
public
static
String
CAS_SERVER_PATH
=
"http://192.168.0.240:8443/cas"
;
public
static
String
SPRING_SECURITY_CAS_SERVER
=
"http://192.168.0.240:8443/cas/v1/tickets"
;
}
yifu-auth/src/main/java/com/yifu/cloud/plus/v1/yifu/auth/filter/PasswordDecoderFilter.java
View file @
aa07adeb
...
...
@@ -71,9 +71,9 @@ public class PasswordDecoderFilter extends UsernamePasswordAuthenticationFilter
wholeForm
.
clear
();
wholeForm
.
add
(
"service"
,
CASproperties
.
CLIENT_LOGIN_PAGE
);
wholeForm
.
add
(
"ticket"
,
st
);
obj
=
restTemplate
.
getForEntity
(
CASproperties
.
CAS_SERVER_PATH
+
"/p3/serviceValidate?service="
+
CASproperties
.
CLIENT_LOGIN_PAGE
+
"&ticket="
+
st
+
"&format=JSON"
,
String
.
class
,
CASproperties
.
CLIENT_LOGIN_PAGE
,
st
,
"JSON"
);
log
.
info
(
"cas返回用户信息》》》"
,
JSON
.
toJSONString
(
obj
));
obj
=
restTemplate
.
exchange
(
CASproperties
.
CAS_SERVER_PATH
+
"/p3/serviceValidate?service="
+
CASproperties
.
CLIENT_LOGIN_PAGE
+
"&ticket="
+
st
+
"&format=JSON"
,
HttpMethod
.
GET
,
entity
,
String
.
class
);
log
.
info
(
"cas返回用户信息》》》"
,
JSON
.
toJSONString
(
obj
));
if
(
obj
.
getStatusCode
().
value
()
==
200
){
try
{
JSONObject
result
=
JSON
.
parseObject
(
obj
.
getBody
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment