Commit 97be874c by Calcium-Ion Committed by GitHub

Merge pull request #930 from Yiffyi/main

fix: save OIDC settings
parents c40404a8 3d5e93d6
...@@ -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'
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment