Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions wren-ui/src/apollo/server/adaptors/ibisAdaptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface IbisTrinoConnectionInfo {
schema: string;
user: string;
password: string;
auth?: OAuth2Authentication;
}

export interface IbisSnowflakeConnectionInfo {
Expand All @@ -63,6 +64,12 @@ export interface IbisSnowflakeConnectionInfo {
schema: string;
}

export interface OAuth2Authentication {
clientId: string;
clientSecret: string;
tokenUrl: string;
}

export type IbisConnectionInfo =
| UrlBasedConnectionInfo
| HostBasedConnectionInfo
Expand Down
36 changes: 36 additions & 0 deletions wren-ui/src/components/pages/setup/dataSources/TrinoProperties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,42 @@ export default function TrinoProperties({ mode }: Props) {
>
<Input.Password placeholder="Input password" />
</Form.Item>
<Form.Item
label="OAuth2 Client ID"
name="clientId"
rules={[
{
required: false,
message: ERROR_TEXTS.CONNECTION.CLIENT_ID.REQUIRED,
},
]}
>
<Input placeholder="OAuth2 Client ID" />
</Form.Item>
<Form.Item
label="OAuth2 Client Secret"
name="clientSecret"
rules={[
{
required: false,
message: ERROR_TEXTS.CONNECTION.CLIENT_SECRET.REQUIRED,
},
]}
>
<Input.Password placeholder="OAuth2 Client Secret" />
</Form.Item>
<Form.Item
label="OAuth2 Token URL"
name="tokenUrl"
rules={[
{
required: false,
message: ERROR_TEXTS.CONNECTION.TOKEN_URL.REQUIRED,
},
]}
>
<Input placeholder="OAuth2 Token URL" />
</Form.Item>
<Form.Item label="Use SSL" name="ssl" valuePropName="checked">
<Switch />
</Form.Item>
Expand Down