Skip to content

Commit

Permalink
Add RCF for authentication type in Sharepoint Server
Browse files Browse the repository at this point in the history
  • Loading branch information
moxarth-rathod committed Jul 24, 2024
1 parent 145f652 commit c8cb1dd
Showing 1 changed file with 41 additions and 11 deletions.
52 changes: 41 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,36 @@ 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 +4703,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 1,
order: 2,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4693,7 +4723,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 2,
order: 3,
required: true,
sensitive: true,
tooltip: '',
Expand All @@ -4713,7 +4743,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 3,
order: 4,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4733,7 +4763,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 4,
order: 5,
required: true,
sensitive: false,
tooltip: '',
Expand All @@ -4748,7 +4778,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 +4798,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 +4813,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 +4828,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 +4843,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 +4872,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 +4903,7 @@ export const NATIVE_CONNECTOR_DEFINITIONS: Record<string, NativeConnector | unde
}
),
options: [],
order: 11,
order: 12,
required: true,
sensitive: false,
tooltip: i18n.translate(
Expand Down

0 comments on commit c8cb1dd

Please sign in to comment.