Skip to content

Commit 07c0b59

Browse files
committed
add other methods
1 parent 7278eaf commit 07c0b59

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

src/containers/Tenant/Info/ExternalDataSource/ExternalDataSource.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ function getAuthMethodValue(data: TEvDescribeSchemeResult) {
3636
if (Auth?.Aws) {
3737
return i18n('external-objects.auth-method.aws');
3838
}
39+
if (Auth?.Token) {
40+
return i18n('external-objects.auth-method.token');
41+
}
42+
if (Auth?.Basic) {
43+
return i18n('external-objects.auth-method.basic');
44+
}
45+
if (Auth?.MdbBasic) {
46+
return i18n('external-objects.auth-method.mdb-basic');
47+
}
3948
return i18n('external-objects.auth-method.none');
4049
}
4150

src/containers/Tenant/Info/i18n/en.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"external-objects.auth-method.none": "None",
77
"external-objects.auth-method.service-account": "Service Account",
88
"external-objects.auth-method.aws": "AWS",
9+
"external-objects.auth-method.token": "Token",
10+
"external-objects.auth-method.basic": "Basic",
11+
"external-objects.auth-method.mdb-basic": "MDB Basic",
912

1013
"view.query-text": "Query Text",
1114

src/types/api/schema/externalDataSource.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ interface TAuth {
1515
None?: NoneAuth;
1616
ServiceAccount?: ServiceAccountAuth;
1717
Aws?: AwsAuth;
18+
Token?: string;
19+
MdbBasic?: MdbBasic;
20+
Basic?: Basic;
1821
}
1922

2023
interface NoneAuth {}
@@ -28,3 +31,15 @@ interface AwsAuth {
2831
AwsRegion?: string;
2932
AwsAccessKeyIdSecretName?: string;
3033
}
34+
35+
interface Basic {
36+
Login?: string;
37+
PasswordSecretName?: string;
38+
}
39+
40+
interface MdbBasic {
41+
ServiceAccountId?: string;
42+
ServiceAccountSecretName?: string;
43+
Login?: string;
44+
PasswordSecretName?: string;
45+
}

0 commit comments

Comments
 (0)