Skip to content

Commit

Permalink
[Sharepoint Server] Add RCF for Authentication type (elastic#189030)
Browse files Browse the repository at this point in the history
## Summary

Related to elastic/connectors#2112. Adding a
new RCF for authentication type having options as Basic Auth and NTLM
Auth in the Sharepoint server connector.


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: Artem Shelkovnikov <artem.shelkovnikov@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
3 people authored Aug 1, 2024
1 parent 63a1cbe commit 340887d
Showing 1 changed file with 50 additions and 11 deletions.
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

0 comments on commit 340887d

Please sign in to comment.