Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
4930ec17
提交
4930ec17
authored
9月 10, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 新增oidc配置
上级
b9eecf8e
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
40 行增加
和
4 行删除
+40
-4
XLdapServer.java
...src/main/java/io/dataease/plugins/server/XLdapServer.java
+1
-1
XOidcServer.java
...src/main/java/io/dataease/plugins/server/XOidcServer.java
+27
-0
user.js
frontend/src/api/system/user.js
+1
-1
index.vue
frontend/src/components/Notification/index.vue
+1
-1
zh.js
frontend/src/lang/zh.js
+9
-0
index.vue
frontend/src/views/login/index.vue
+1
-1
没有找到文件。
backend/src/main/java/io/dataease/plugins/server/XLdapServer.java
浏览文件 @
4930ec17
...
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.*;
import
java.util.List
;
import
java.util.List
;
@RequestMapping
(
"/
api
/ldap"
)
@RequestMapping
(
"/
plugin
/ldap"
)
@RestController
@RestController
public
class
XLdapServer
{
public
class
XLdapServer
{
...
...
backend/src/main/java/io/dataease/plugins/server/XOidcServer.java
0 → 100644
浏览文件 @
4930ec17
package
io
.
dataease
.
plugins
.
server
;
import
io.dataease.plugins.config.SpringContextUtil
;
import
io.dataease.plugins.xpack.display.dto.response.SysSettingDto
;
import
io.dataease.plugins.xpack.oidc.service.OidcXpackService
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.List
;
@RequestMapping
(
"/plugin/oidc"
)
@RestController
public
class
XOidcServer
{
@PostMapping
(
"/info"
)
public
List
<
SysSettingDto
>
getOidcInfo
()
{
OidcXpackService
oidcXpackService
=
SpringContextUtil
.
getBean
(
OidcXpackService
.
class
);
return
oidcXpackService
.
oidcSettings
();
}
@PostMapping
(
"/save"
)
public
void
save
(
@RequestBody
List
<
SysSettingDto
>
settings
)
{
OidcXpackService
oidcXpackService
=
SpringContextUtil
.
getBean
(
OidcXpackService
.
class
);
oidcXpackService
.
save
(
settings
);
}
}
frontend/src/api/system/user.js
浏览文件 @
4930ec17
...
@@ -100,7 +100,7 @@ export function roleGrid(pageIndex, pageSize, data) {
...
@@ -100,7 +100,7 @@ export function roleGrid(pageIndex, pageSize, data) {
export
function
ldapUsers
(
data
)
{
export
function
ldapUsers
(
data
)
{
return
request
({
return
request
({
url
:
'/
api
/ldap/users'
,
url
:
'/
plugin
/ldap/users'
,
method
:
'post'
,
method
:
'post'
,
loading
:
true
loading
:
true
})
})
...
...
frontend/src/components/Notification/index.vue
浏览文件 @
4930ec17
...
@@ -232,7 +232,7 @@ export default {
...
@@ -232,7 +232,7 @@ export default {
right
:
178px
;
right
:
178px
;
top
:
8px
;
top
:
8px
;
background
:
red
;
background
:
red
;
//
color: #fff;
color
:
#fff
;
border-radius
:
17px
;
border-radius
:
17px
;
padding
:
4px
7px
;
padding
:
4px
7px
;
font-size
:
16px
;
font-size
:
16px
;
...
...
frontend/src/lang/zh.js
浏览文件 @
4930ec17
...
@@ -532,6 +532,15 @@ export default {
...
@@ -532,6 +532,15 @@ export default {
mapping_cannot_be_empty
:
'LDAP 用户属性映射不能为空'
,
mapping_cannot_be_empty
:
'LDAP 用户属性映射不能为空'
,
password_cannot_be_empty
:
'LDAP 密码不能为空'
password_cannot_be_empty
:
'LDAP 密码不能为空'
},
},
oidc
:
{
auth_endpoint
:
'请输入AuthEndpoint'
,
token_endpoint
:
'请输入TokenEndpoint'
,
userinfo_endpoint
:
'请输入UserinfoEndpoint'
,
logout_endpoint
:
'请输入logoutEndpoint'
,
clientId
:
'请输入ClientId'
,
secret
:
'请输入Secret'
,
open
:
'启用OIDC认证'
},
role
:
{
role
:
{
menu_authorization
:
'菜单授权'
,
menu_authorization
:
'菜单授权'
,
data_authorization
:
'数据授权'
,
data_authorization
:
'数据授权'
,
...
...
frontend/src/views/login/index.vue
浏览文件 @
4930ec17
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
loginImageUrl
:
null
,
loginImageUrl
:
null
,
loginLogoUrl
:
null
,
loginLogoUrl
:
null
,
axiosFinished
:
false
,
axiosFinished
:
false
,
openLdap
:
tru
e
openLdap
:
fals
e
}
}
},
},
computed
:
{
computed
:
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论