Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
loginservice
Overview
Overview
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
lanmw
loginservice
Commits
edf93ccb
Commit
edf93ccb
authored
Sep 16, 2021
by
chenzx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
湖南一体化单点登录配置更新,如果是公司环境要注释才能正常运行
parent
3a5255f4
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
34 additions
and
7 deletions
+34
-7
portal-sso-client-0.0.1-SNAPSHOT.jar
lib/portal-sso-client-0.0.1-SNAPSHOT.jar
+0
-0
ClientSsoConfig.java
src/main/java/com/keymobile/proxy/conf/ClientSsoConfig.java
+1
-1
SsoServerProcesssor.java
...n/java/com/keymobile/proxy/model/SsoServerProcesssor.java
+1
-1
application-test.yml
src/main/resources/application-test.yml
+7
-5
logback-spring.xml
src/main/resources/logback-spring.xml
+25
-0
No files found.
lib/portal-sso-client-0.0.1-SNAPSHOT.jar
View file @
edf93ccb
No preview for this file type
src/main/java/com/keymobile/proxy/conf/ClientSsoConfig.java
View file @
edf93ccb
...
...
@@ -16,7 +16,7 @@ import org.springframework.boot.web.servlet.FilterRegistrationBean;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
//
@Configuration
@Configuration
public
class
ClientSsoConfig
implements
DisposableBean
{
@Autowired
SsoServerProcesssor
ssoServerProcesssor
;
...
...
src/main/java/com/keymobile/proxy/model/SsoServerProcesssor.java
View file @
edf93ccb
...
...
@@ -3,7 +3,7 @@ package com.keymobile.proxy.model;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
//
@Component
@Component
public
class
SsoServerProcesssor
{
@Value
(
"${portal.sso.appid}"
)
private
String
clientAppId
;
...
...
src/main/resources/application-test.yml
View file @
edf93ccb
...
...
@@ -10,7 +10,7 @@ spring:
namespace
:
tb
redis
:
cluster
:
nodes
:
1
92.168.0.192
:6379
nodes
:
1
27.0.0.1
:6379
max-redirects
:
6
timeout
:
10000
#客户端超时时间单位是毫秒 默认是2000
maxIdle
:
300
#最大空闲数
...
...
@@ -23,9 +23,9 @@ spring:
testWhileIdle
:
true
#在空闲时检查有效性, 默认false
password
:
datasource
:
url
:
jdbc:mysql://
dev-vm-00:3
306/dev0?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
username
:
tes
t
password
:
test
url
:
jdbc:mysql://
139.198.127.54:9
306/dev0?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8
username
:
roo
t
password
:
dataSharing
servlet
:
multipart
:
max-file-size
:
100Mb
...
...
@@ -42,6 +42,7 @@ eureka:
registryFetchIntervalSeconds
:
5
serviceUrl
:
defaultZone
:
http://192.168.0.216:8081/eureka/
enabled
:
false
instance
:
prefer-ip-address
:
true
hostname
:
192.168.0.110
...
...
@@ -51,8 +52,9 @@ zuul:
sensitive-headers
:
logging
:
config
:
classpath:logback-spring.xml
level
:
org
.springframework.security
:
DEBUG
org
:
info
redirect-url
:
system-management
:
http://192.168.0.216:9090/center-home/view/index
...
...
src/main/resources/logback-spring.xml
0 → 100644
View file @
edf93ccb
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender
name=
"stdout"
class=
"ch.qos.logback.core.ConsoleAppender"
>
<encoder>
<pattern>
%d{HH:mm:ss.SSS} [%thread] %X{user} %X{session} %-5level %logger{5} - %msg%n
</pattern>
<charset>
UTF-8
</charset>
</encoder>
</appender>
<appender
name=
"file"
class=
"ch.qos.logback.core.FileAppender"
>
<file>
./logs/login.log
</file>
<append>
false
</append>
<encoder>
<pattern>
%msg%n
</pattern>
</encoder>
</appender>
<logger
name=
"com.keymobile.proxy.conf.RESTAuthenticationSuccessHandler"
>
<appender-ref
ref=
"file"
/>
</logger>
<root
level=
"INFO"
>
<appender-ref
ref=
"stdout"
/>
</root>
</configuration>
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