diff --git a/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts b/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts index c7babaf3d6..aa66dd6c37 100644 --- a/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts +++ b/webapp/packages/plugin-connection-template/src/ConnectionDialog/ConnectionController.ts @@ -172,7 +172,6 @@ export class ConnectionController authType: handler.authType, userName: handler.userName, password: handler.password, - key: handler.key, savePassword: handler.savePassword, }); } diff --git a/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx b/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx index 8846d7815f..68ad8ab686 100644 --- a/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx +++ b/webapp/packages/plugin-connections/src/ConnectionAuthentication/NetworkHandlerAuthForm.tsx @@ -9,12 +9,11 @@ import { observer } from 'mobx-react-lite'; import styled from 'reshadow'; -import { BASE_CONTAINERS_STYLES, Button, FieldCheckbox, GroupItem, GroupTitle, InputField, Textarea, UploadArea, useMapResource } from '@cloudbeaver/core-blocks'; +import { BASE_CONTAINERS_STYLES, FieldCheckbox, GroupTitle, InputField, useMapResource } from '@cloudbeaver/core-blocks'; import { NetworkHandlerResource } from '@cloudbeaver/core-connections'; import { useTranslate } from '@cloudbeaver/core-localization'; import { NetworkHandlerAuthType, NetworkHandlerConfigInput } from '@cloudbeaver/core-sdk'; import { useStyles } from '@cloudbeaver/core-theming'; -import { getTextFileReadingProcess } from '@cloudbeaver/core-utils'; interface Props { id: string; @@ -38,22 +37,6 @@ export const NetworkHandlerAuthForm = observer(function NetworkHandlerAut } const state = networkHandlersConfig.find(state => state.id === id)!; - - const handleKeyUpload = async (event: React.ChangeEvent) => { - const file = event.target.files?.[0]; - - if (!file) { - throw new Error('File is not found'); - } - - const process = getTextFileReadingProcess(file); - const key = await process.promise; - - if (key) { - state.key = key; - } - }; - const keyAuth = state.authType === NetworkHandlerAuthType.PublicKey; const passwordLabel = keyAuth ? 'Passphrase' : translate(`connections_network_handler_${id}_password`, 'connections_network_handler_default_password'); @@ -78,32 +61,6 @@ export const NetworkHandlerAuthForm = observer(function NetworkHandlerAut > {passwordLabel} - {keyAuth && ( - <> - - - - - - - - )} {allowSaveCredentials && (