Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sharepoint Server] Add RCF for Authentication type #189030

61 changes: 50 additions & 11 deletions packages/kbn-search-connectors/types/native_connectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4662,6 +4662,45 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
},
sharepoint_server: {
configuration: {
authentication: {
default_value: null,
depends_on: [],
display: DisplayType.DROPDOWN,
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_server.configuration.authentication',
{
defaultMessage: 'Authentication',
}
),
options: [
{
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_server.options.basicLabel',
{
defaultMessage: 'Basic',
}
),
value: 'basic_auth',
},
{
label: i18n.translate(
'searchConnectors.nativeConnectors.sharepoint_server.options.ntlmLabel',
{
defaultMessage: 'NTLM',
}
),
value: 'ntlm_auth',
},
],
order: 1,
required: true,
sensitive: false,
tooltip: null,
type: FieldType.STRING,
ui_restrictions: [],
validations: [],
value: 'basic_auth',
},
username: {
default_value: null,
depends_on: [],
Expand All @@ -4673,7 +4712,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 1,
order: 2,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4693,7 +4732,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 2,
order: 3,
required: true,
sensitive: true,
tooltip: '',
Expand All @@ -4713,7 +4752,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 3,
order: 4,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4733,7 +4772,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 4,
order: 5,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4748,7 +4787,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TOGGLE,
label: ENABLE_SSL_LABEL,
options: [],
order: 5,
order: 6,
required: true,
sensitive: false,
tooltip: null,
Expand All @@ -4768,7 +4807,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TEXTBOX,
label: SSL_CERTIFICATE_LABEL,
options: [],
order: 6,
order: 7,
required: true,
sensitive: false,
tooltip: null,
Expand All @@ -4783,7 +4822,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.NUMERIC,
label: RETRIES_PER_REQUEST_LABEL,
options: [],
order: 7,
order: 8,
required: false,
sensitive: false,
tooltip: null,
Expand All @@ -4798,7 +4837,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TOGGLE,
label: USE_TEXT_EXTRACTION_SERVICE_LABEL,
options: [],
order: 8,
order: 9,
required: true,
sensitive: false,
tooltip: USE_TEXT_EXTRACTION_SERVICE_TOOLTIP,
Expand All @@ -4813,7 +4852,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
display: DisplayType.TOGGLE,
label: ENABLE_DOCUMENT_LEVEL_SECURITY_LABEL,
options: [],
order: 9,
order: 10,
required: true,
sensitive: false,
tooltip: getEnableDocumentLevelSecurityTooltip(
Expand Down Expand Up @@ -4842,7 +4881,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 10,
order: 11,
required: true,
sensitive: false,
tooltip: i18n.translate(
Expand Down Expand Up @@ -4873,7 +4912,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 11,
order: 12,
required: true,
sensitive: false,
tooltip: i18n.translate(
Expand Down