forked from phoenix/litellm-mirror
ui - setup sso
This commit is contained in:
parent
580534c765
commit
2a5e62481b
1 changed files with 50 additions and 0 deletions
|
@ -376,6 +376,56 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
|
|||
</div>
|
||||
</Col>
|
||||
</Grid>
|
||||
<Grid>
|
||||
<Title level={4}>Add SSO </Title>
|
||||
<Card>
|
||||
<Form
|
||||
form={form}
|
||||
onFinish={handleMemberUpdate}
|
||||
labelCol={{ span: 8 }}
|
||||
wrapperCol={{ span: 16 }}
|
||||
labelAlign="left"
|
||||
>
|
||||
<>
|
||||
<Form.Item
|
||||
label="PROXY_BASE_URL"
|
||||
name="proxy_base_url"
|
||||
rules={[
|
||||
{ required: true, message: "Please enter the public key" },
|
||||
]}
|
||||
>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
|
||||
|
||||
<Form.Item
|
||||
label="GOOGLE_CLIENT_ID"
|
||||
name="google_client_id"
|
||||
rules={[
|
||||
{ required: true, message: "Please enter the public key" },
|
||||
]}
|
||||
>
|
||||
<Input.Password />
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item
|
||||
label="GOOGLE_CLIENT_SECRET"
|
||||
name="google_client_secret"
|
||||
rules={[
|
||||
{ required: true, message: "Please enter the private key" },
|
||||
]}
|
||||
>
|
||||
<Input.Password />
|
||||
</Form.Item>
|
||||
</>
|
||||
<div style={{ textAlign: "right", marginTop: "10px" }}>
|
||||
<Button2 htmlType="submit">Update role</Button2>
|
||||
</div>
|
||||
</Form>
|
||||
|
||||
</Card>
|
||||
|
||||
</Grid>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue