Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzou
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzou
提交
bdd6b287
提交
bdd6b287
编写于
5月 23, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
zhouweidong@lab.ibiz5.com 发布系统代码
上级
35a0a948
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
11 行增加
和
7 行删除
+11
-7
application-web-prod.yml
...ibzou-app-web/src/main/resources/application-web-prod.yml
+4
-0
AuthenticationUserService.java
...va/cn/ibizlab/util/service/AuthenticationUserService.java
+3
-3
IBZUAAUserService.java
.../main/java/cn/ibizlab/util/service/IBZUAAUserService.java
+1
-1
IBZUSERServiceImpl.java
...main/java/cn/ibizlab/util/service/IBZUSERServiceImpl.java
+1
-1
SimpleUserService.java
.../main/java/cn/ibizlab/util/service/SimpleUserService.java
+1
-1
application-sys.yml
ibzou-util/src/main/resources/application-sys.yml
+1
-1
未找到文件。
ibzou-app/ibzou-app-web/src/main/resources/application-web-prod.yml
浏览文件 @
bdd6b287
...
@@ -19,5 +19,9 @@ zuul:
...
@@ -19,5 +19,9 @@ zuul:
path
:
/ibzorganizations/**
path
:
/ibzorganizations/**
serviceId
:
ibzou-api
serviceId
:
ibzou-api
stripPrefix
:
false
stripPrefix
:
false
loginv7
:
path
:
/v7/login
serviceId
:
ibzuaa-api
stripPrefix
:
false
sensitive-headers
:
sensitive-headers
:
-
Cookie,Set-Cookie,Authorization
-
Cookie,Set-Cookie,Authorization
ibzou-util/src/main/java/cn/ibizlab/util/service/AuthenticationUserService.java
浏览文件 @
bdd6b287
...
@@ -15,12 +15,12 @@ public interface AuthenticationUserService extends UserDetailsService {
...
@@ -15,12 +15,12 @@ public interface AuthenticationUserService extends UserDetailsService {
@Override
@Override
@Cacheable
(
value
=
"ibz
ou
_users"
,
key
=
"'getByUsername:'+#p0"
)
@Cacheable
(
value
=
"ibz
uaa
_users"
,
key
=
"'getByUsername:'+#p0"
)
AuthenticationUser
loadUserByUsername
(
String
username
);
AuthenticationUser
loadUserByUsername
(
String
username
);
@Cacheable
(
value
=
"ibz
ou
_users"
,
key
=
"'getByUsername:'+#p0"
)
@Cacheable
(
value
=
"ibz
uaa
_users"
,
key
=
"'getByUsername:'+#p0"
)
AuthenticationUser
loadUserByLogin
(
String
username
,
String
password
);
AuthenticationUser
loadUserByLogin
(
String
username
,
String
password
);
@CacheEvict
(
value
=
"ibz
ou
_users"
,
key
=
"'getByUsername:'+#p0"
)
@CacheEvict
(
value
=
"ibz
uaa
_users"
,
key
=
"'getByUsername:'+#p0"
)
void
resetByUsername
(
String
username
);
void
resetByUsername
(
String
username
);
}
}
ibzou-util/src/main/java/cn/ibizlab/util/service/IBZUAAUserService.java
浏览文件 @
bdd6b287
...
@@ -18,7 +18,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
...
@@ -18,7 +18,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
* 实体[IBZUSER] 服务对象接口实现
* 实体[IBZUSER] 服务对象接口实现
*/
*/
@Service
(
"IBZUAAUserService"
)
@Service
(
"IBZUAAUserService"
)
@ConditionalOnExpression
(
"${ibiz.enablePermissionValid:false}||'${ibiz.auth.service:
Simple
UserService}'.equals('IBZUAAUserService')"
)
@ConditionalOnExpression
(
"${ibiz.enablePermissionValid:false}||'${ibiz.auth.service:
IBZUAA
UserService}'.equals('IBZUAAUserService')"
)
public
class
IBZUAAUserService
implements
AuthenticationUserService
{
public
class
IBZUAAUserService
implements
AuthenticationUserService
{
@Autowired
@Autowired
...
...
ibzou-util/src/main/java/cn/ibizlab/util/service/IBZUSERServiceImpl.java
浏览文件 @
bdd6b287
...
@@ -19,7 +19,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
...
@@ -19,7 +19,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
* 实体[IBZUSER] 服务对象接口实现
* 实体[IBZUSER] 服务对象接口实现
*/
*/
@Service
(
"IBZUSERService"
)
@Service
(
"IBZUSERService"
)
@ConditionalOnExpression
(
"(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:
Simple
UserService}'.equals('IBZUSERService')"
)
@ConditionalOnExpression
(
"(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:
IBZUAA
UserService}'.equals('IBZUSERService')"
)
public
class
IBZUSERServiceImpl
extends
ServiceImpl
<
IBZUSERMapper
,
IBZUSER
>
implements
IBZUSERService
,
AuthenticationUserService
{
public
class
IBZUSERServiceImpl
extends
ServiceImpl
<
IBZUSERMapper
,
IBZUSER
>
implements
IBZUSERService
,
AuthenticationUserService
{
@Value
(
"${ibiz.auth.pwencrymode:0}"
)
@Value
(
"${ibiz.auth.pwencrymode:0}"
)
...
...
ibzou-util/src/main/java/cn/ibizlab/util/service/SimpleUserService.java
浏览文件 @
bdd6b287
...
@@ -18,7 +18,7 @@ import org.springframework.security.core.authority.AuthorityUtils;
...
@@ -18,7 +18,7 @@ import org.springframework.security.core.authority.AuthorityUtils;
*/
*/
@Primary
@Primary
@Service
(
"SimpleUserService"
)
@Service
(
"SimpleUserService"
)
@ConditionalOnExpression
(
"(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:
Simple
UserService}'.equals('SimpleUserService')"
)
@ConditionalOnExpression
(
"(!${ibiz.enablePermissionValid:false})&&'${ibiz.auth.service:
IBZUAA
UserService}'.equals('SimpleUserService')"
)
public
class
SimpleUserService
implements
AuthenticationUserService
{
public
class
SimpleUserService
implements
AuthenticationUserService
{
@Override
@Override
...
...
ibzou-util/src/main/resources/application-sys.yml
浏览文件 @
bdd6b287
...
@@ -82,6 +82,6 @@ ribbon:
...
@@ -82,6 +82,6 @@ ribbon:
#系统是否开启权限验证、是否开启缓存
#系统是否开启权限验证、是否开启缓存
#缓存级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2)
#缓存级别:无缓存(无配置项)、一级缓存(L1)、二级缓存(L2)
ibiz
:
ibiz
:
enablePermissionValid
:
fals
e
enablePermissionValid
:
tru
e
cacheLevel
:
L1
#(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
cacheLevel
:
L1
#(L1)一级本地caffeine缓存;(L2)caffeine缓存+Redis缓存
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录