Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
97be874c
authored
Apr 08, 2025
by
Calcium-Ion
Committed by
GitHub
Apr 08, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #930 from Yiffyi/main
fix: save OIDC settings
parents
c40404a8
3d5e93d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
web/src/components/SystemSetting.js
+7
-7
No files found.
web/src/components/SystemSetting.js
View file @
97be874c
...
@@ -619,7 +619,7 @@ const SystemSetting = () => {
...
@@ -619,7 +619,7 @@ const SystemSetting = () => {
允许通过
Telegram
进行登录
允许通过
Telegram
进行登录
<
/Form.Checkbox
>
<
/Form.Checkbox
>
<
Form
.
Checkbox
<
Form
.
Checkbox
field
=
'oidc.enabled'
field
=
"['oidc.enabled']"
noLabel
noLabel
onChange
=
{(
e
)
=>
handleCheckboxChange
(
'oidc.enabled'
,
e
)}
onChange
=
{(
e
)
=>
handleCheckboxChange
(
'oidc.enabled'
,
e
)}
>
>
...
@@ -721,14 +721,14 @@ const SystemSetting = () => {
...
@@ -721,14 +721,14 @@ const SystemSetting = () => {
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.well_known'
field
=
"['oidc.well_known']"
label
=
'Well-Known URL'
label
=
'Well-Known URL'
placeholder
=
'请输入 OIDC 的 Well-Known URL'
placeholder
=
'请输入 OIDC 的 Well-Known URL'
/>
/>
<
/Col
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.client_id'
field
=
"['oidc.client_id']"
label
=
'Client ID'
label
=
'Client ID'
placeholder
=
'输入 OIDC 的 Client ID'
placeholder
=
'输入 OIDC 的 Client ID'
/>
/>
...
@@ -737,7 +737,7 @@ const SystemSetting = () => {
...
@@ -737,7 +737,7 @@ const SystemSetting = () => {
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.client_secret'
field
=
"['oidc.client_secret']"
label
=
'Client Secret'
label
=
'Client Secret'
type
=
'password'
type
=
'password'
placeholder
=
'敏感信息不会发送到前端显示'
placeholder
=
'敏感信息不会发送到前端显示'
...
@@ -745,7 +745,7 @@ const SystemSetting = () => {
...
@@ -745,7 +745,7 @@ const SystemSetting = () => {
<
/Col
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.authorization_endpoint'
field
=
"['oidc.authorization_endpoint']"
label
=
'Authorization Endpoint'
label
=
'Authorization Endpoint'
placeholder
=
'输入 OIDC 的 Authorization Endpoint'
placeholder
=
'输入 OIDC 的 Authorization Endpoint'
/>
/>
...
@@ -754,14 +754,14 @@ const SystemSetting = () => {
...
@@ -754,14 +754,14 @@ const SystemSetting = () => {
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Row
gutter
=
{{
xs
:
8
,
sm
:
16
,
md
:
24
,
lg
:
24
,
xl
:
24
,
xxl
:
24
}}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.token_endpoint'
field
=
"['oidc.token_endpoint']"
label
=
'Token Endpoint'
label
=
'Token Endpoint'
placeholder
=
'输入 OIDC 的 Token Endpoint'
placeholder
=
'输入 OIDC 的 Token Endpoint'
/>
/>
<
/Col
>
<
/Col
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Col
xs
=
{
24
}
sm
=
{
24
}
md
=
{
12
}
lg
=
{
12
}
xl
=
{
12
}
>
<
Form
.
Input
<
Form
.
Input
field
=
'oidc.user_info_endpoint'
field
=
"['oidc.user_info_endpoint']"
label
=
'User Info Endpoint'
label
=
'User Info Endpoint'
placeholder
=
'输入 OIDC 的 Userinfo Endpoint'
placeholder
=
'输入 OIDC 的 Userinfo Endpoint'
/>
/>
...
...
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