From 8ef6c90622f88a42dcd3c3673f23d993b45c0ffe Mon Sep 17 00:00:00 2001 From: Keshav Mohta <68001229+keshavmohta09@users.noreply.github.com> Date: Wed, 5 Nov 2025 00:59:07 +0530 Subject: [PATCH] feat: added salesforce oauth (#24154) --- .../source/database/salesforce/connection.py | 20 +++++-- .../unit/topology/database/test_salesforce.py | 59 ++++++++++++++++++- .../database/salesforceConnection.json | 20 +++++-- .../locales/en-US/Database/Salesforce.md | 12 ++++ .../api/automations/createWorkflow.ts | 20 +++++-- .../api/services/createDatabaseService.ts | 20 +++++-- .../createIngestionPipeline.ts | 20 +++++-- .../automations/testServiceConnection.ts | 20 +++++-- .../generated/entity/automations/workflow.ts | 20 +++++-- .../database/salesforceConnection.ts | 22 +++++-- .../services/connections/serviceConnection.ts | 20 +++++-- .../entity/services/databaseService.ts | 20 +++++-- .../ingestionPipelines/ingestionPipeline.ts | 20 +++++-- .../metadataIngestion/testSuitePipeline.ts | 20 +++++-- .../generated/metadataIngestion/workflow.ts | 20 +++++-- 15 files changed, 275 insertions(+), 58 deletions(-) diff --git a/ingestion/src/metadata/ingestion/source/database/salesforce/connection.py b/ingestion/src/metadata/ingestion/source/database/salesforce/connection.py index 8011545feef..2c844425bc6 100644 --- a/ingestion/src/metadata/ingestion/source/database/salesforce/connection.py +++ b/ingestion/src/metadata/ingestion/source/database/salesforce/connection.py @@ -28,6 +28,9 @@ from metadata.generated.schema.entity.services.connections.testConnectionResult from metadata.ingestion.connections.test_connections import test_connection_steps from metadata.ingestion.ometa.ometa_api import OpenMetadata from metadata.utils.constants import THREE_MIN +from metadata.utils.logger import ingestion_logger + +logger = ingestion_logger() def get_connection(connection: SalesforceConnection) -> Salesforce: @@ -36,14 +39,19 @@ def get_connection(connection: SalesforceConnection) -> Salesforce: """ return Salesforce( username=connection.username, - password=connection.password.get_secret_value(), - security_token=connection.securityToken.get_secret_value() - if connection.securityToken - else "", - organizationId=connection.organizationId if connection.organizationId else "", + password=connection.password and connection.password.get_secret_value(), + security_token=connection.securityToken + and connection.securityToken.get_secret_value(), + consumer_key=connection.consumerKey, + consumer_secret=connection.consumerSecret + and connection.consumerSecret.get_secret_value(), + organizationId=connection.organizationId, domain=connection.salesforceDomain, version=connection.salesforceApiVersion, - **connection.connectionArguments.root if connection.connectionArguments else {}, + **( + (connection.connectionArguments and connection.connectionArguments.root) + or {} + ), ) diff --git a/ingestion/tests/unit/topology/database/test_salesforce.py b/ingestion/tests/unit/topology/database/test_salesforce.py index a0cb3a60358..fe3ccfe8f82 100644 --- a/ingestion/tests/unit/topology/database/test_salesforce.py +++ b/ingestion/tests/unit/topology/database/test_salesforce.py @@ -67,6 +67,41 @@ mock_salesforce_config = { } }, } + +mock_salesforce_oauth_config = { + "source": { + "type": "salesforce", + "serviceName": "local_salesforce_oauth", + "serviceConnection": { + "config": { + "type": "Salesforce", + "username": "username", + "password": "password", + "consumerKey": "test_consumer_key", + "consumerSecret": "test_consumer_secret", + "salesforceDomain": "login", + "sobjectName": "sobjectName", + } + }, + "sourceConfig": { + "config": { + "type": "DatabaseMetadata", + } + }, + }, + "sink": { + "type": "metadata-rest", + "config": {}, + }, + "workflowConfig": { + "openMetadataServerConfig": { + "hostPort": "http://localhost:8585/api", + "authProvider": "openmetadata", + "securityConfig": {"jwtToken": "salesforce"}, + } + }, +} + MOCK_DATABASE_SERVICE = DatabaseService( id="85811038-099a-11ed-861d-0242ac120002", name="salesforce_source", @@ -466,6 +501,26 @@ class SalesforceUnitTest(TestCase): ) assert result == EXPECTED_COLUMN_TYPE[i] + @patch( + "metadata.ingestion.source.database.salesforce.metadata.SalesforceSource.test_connection" + ) + @patch("simple_salesforce.api.Salesforce") + def test_oauth_connection(self, salesforce, test_connection) -> None: + test_connection.return_value = False + self.config = OpenMetadataWorkflowConfig.model_validate( + mock_salesforce_oauth_config + ) + self.salesforce_source = SalesforceSource.create( + mock_salesforce_oauth_config["source"], + self.config.workflowConfig.openMetadataServerConfig, + ) + self.assertTrue( + self.salesforce_source.config.serviceConnection.root.config.consumerKey + ) + self.assertTrue( + self.salesforce_source.config.serviceConnection.root.config.consumerSecret + ) + @patch( "metadata.ingestion.source.database.salesforce.metadata.SalesforceSource.test_connection" ) @@ -474,7 +529,7 @@ class SalesforceUnitTest(TestCase): mock_salesforce_config["source"]["serviceConnection"]["config"]["sslConfig"] = { "caCertificate": """ -----BEGIN CERTIFICATE----- - sample caCertificateData + sample caCertificateData -----END CERTIFICATE----- """ } @@ -483,7 +538,7 @@ class SalesforceUnitTest(TestCase): "sslKey" ] = """ -----BEGIN CERTIFICATE----- - sample caCertificateData + sample caCertificateData -----END CERTIFICATE----- """ mock_salesforce_config["source"]["serviceConnection"]["config"]["sslConfig"][ diff --git a/openmetadata-spec/src/main/resources/json/schema/entity/services/connections/database/salesforceConnection.json b/openmetadata-spec/src/main/resources/json/schema/entity/services/connections/database/salesforceConnection.json index 51db8f8f19c..367c6b53d4f 100644 --- a/openmetadata-spec/src/main/resources/json/schema/entity/services/connections/database/salesforceConnection.json +++ b/openmetadata-spec/src/main/resources/json/schema/entity/services/connections/database/salesforceConnection.json @@ -22,18 +22,29 @@ }, "username": { "title": "Username", - "description": "Username to connect to the Salesforce. This user should have privileges to read all the metadata in Redshift.", + "description": "Username to connect to Salesforce. This user should have privileges to read all the metadata in Salesforce.", "type": "string" }, "password": { "title": "Password", - "description": "Password to connect to the Salesforce.", + "description": "Password to connect to Salesforce.", "type": "string", "format": "password" }, "securityToken": { "title": "Security Token", - "description": "Salesforce Security Token.", + "description": "Salesforce Security Token for username/password authentication.", + "type": "string", + "format": "password" + }, + "consumerKey": { + "title": "Consumer Key", + "description": "Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from your Salesforce Connected App configuration. Required along with Consumer Secret for OAuth authentication.", + "type": "string" + }, + "consumerSecret": { + "title": "Consumer Secret", + "description": "Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained from your Salesforce Connected App configuration. Required along with Consumer Key for OAuth authentication.", "type": "string", "format": "password" }, @@ -97,6 +108,5 @@ "$ref": "../connectionBasicType.json#/definitions/supportsMetadataExtraction" } }, - "additionalProperties": false, - "required": ["username"] + "additionalProperties": false } diff --git a/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Database/Salesforce.md b/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Database/Salesforce.md index 68c9115f06a..50e22aeccf0 100644 --- a/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Database/Salesforce.md +++ b/openmetadata-ui/src/main/resources/ui/public/locales/en-US/Database/Salesforce.md @@ -32,6 +32,18 @@ $$section Salesforce Security Token is required to access the metadata through APIs. You can check out this doc on how to get the security token. $$ +$$section +### Consumer Key $(id="consumerKey") + +Salesforce Consumer Key for OAuth 2.0 authentication. This is obtained from your Salesforce Connected App configuration. +$$ + +$$section +### Consumer Secret $(id="consumerSecret") + +Salesforce Consumer Secret for OAuth 2.0 authentication. This is obtained from your Salesforce Connected App configuration. +$$ + $$section ### Organization ID $(id="organizationId") diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/automations/createWorkflow.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/automations/createWorkflow.ts index 8ace9346f35..d75f1556d73 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/automations/createWorkflow.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/automations/createWorkflow.ts @@ -778,7 +778,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -863,8 +863,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -1090,6 +1090,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -1105,7 +1117,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/services/createDatabaseService.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/services/createDatabaseService.ts index 56c5b915a2b..28e140048d1 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/services/createDatabaseService.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/services/createDatabaseService.ts @@ -401,7 +401,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -474,8 +474,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -673,6 +673,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity */ @@ -686,7 +698,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/services/ingestionPipelines/createIngestionPipeline.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/services/ingestionPipelines/createIngestionPipeline.ts index a67acfb3246..fc0bede3219 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/services/ingestionPipelines/createIngestionPipeline.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/services/ingestionPipelines/createIngestionPipeline.ts @@ -2864,7 +2864,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -2952,8 +2952,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -3541,6 +3541,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -3556,7 +3568,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/testServiceConnection.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/testServiceConnection.ts index 5c7c1cca6bd..6b747dbcf0f 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/testServiceConnection.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/testServiceConnection.ts @@ -660,7 +660,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -745,8 +745,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -972,6 +972,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -987,7 +999,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/workflow.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/workflow.ts index d33258e4b0f..4eb18dc9834 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/workflow.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/automations/workflow.ts @@ -1224,7 +1224,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -1309,8 +1309,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -1536,6 +1536,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -1551,7 +1563,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/database/salesforceConnection.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/database/salesforceConnection.ts index 850bb4eab84..83f8cf630e7 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/database/salesforceConnection.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/database/salesforceConnection.ts @@ -16,6 +16,18 @@ export interface SalesforceConnection { connectionArguments?: { [key: string]: any }; connectionOptions?: { [key: string]: string }; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Regex to only include/exclude databases that matches the pattern. */ @@ -30,7 +42,7 @@ export interface SalesforceConnection { */ organizationId?: string; /** - * Password to connect to the Salesforce. + * Password to connect to Salesforce. */ password?: string; /** @@ -46,7 +58,7 @@ export interface SalesforceConnection { */ schemaFilterPattern?: FilterPattern; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** @@ -67,10 +79,10 @@ export interface SalesforceConnection { */ type?: SalesforceType; /** - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. */ - username: string; + username?: string; } /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts index 94c40e9b852..acc2df9e021 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/connections/serviceConnection.ts @@ -562,7 +562,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -650,8 +650,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -1239,6 +1239,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -1254,7 +1266,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/databaseService.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/databaseService.ts index 1ed94675ac6..dca49c51bea 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/databaseService.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/databaseService.ts @@ -524,7 +524,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -597,8 +597,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -796,6 +796,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity */ @@ -809,7 +821,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts index 59329ca5054..6bd2ec91f6d 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/services/ingestionPipelines/ingestionPipeline.ts @@ -3379,7 +3379,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -3467,8 +3467,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -4056,6 +4056,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -4071,7 +4083,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts index 9739c3e4f3f..d5a40cb1ed7 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/testSuitePipeline.ts @@ -606,7 +606,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -694,8 +694,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -1283,6 +1283,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -1298,7 +1310,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts index 91a18c3c5ee..2708094049d 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/metadataIngestion/workflow.ts @@ -646,7 +646,7 @@ export interface ConfigObject { * * Password to connect to Redshift. * - * Password to connect to the Salesforce. + * Password to connect to Salesforce. * * Password to connect to SingleStore. * @@ -734,8 +734,8 @@ export interface ConfigObject { * Username to connect to Redshift. This user should have privileges to read all the * metadata in Redshift. * - * Username to connect to the Salesforce. This user should have privileges to read all the - * metadata in Redshift. + * Username to connect to Salesforce. This user should have privileges to read all the + * metadata in Salesforce. * * Username to connect to SingleStore. This user should have privileges to read all the * metadata in MySQL. @@ -1323,6 +1323,18 @@ export interface ConfigObject { * Verify ( Connection Argument for SSL ) to connect to Trino. */ verify?: string; + /** + * Salesforce Consumer Key (Client ID) for OAuth 2.0 authentication. This is obtained from + * your Salesforce Connected App configuration. Required along with Consumer Secret for + * OAuth authentication. + */ + consumerKey?: string; + /** + * Salesforce Consumer Secret (Client Secret) for OAuth 2.0 authentication. This is obtained + * from your Salesforce Connected App configuration. Required along with Consumer Key for + * OAuth authentication. + */ + consumerSecret?: string; /** * Salesforce Organization ID is the unique identifier for your Salesforce identity * @@ -1338,7 +1350,7 @@ export interface ConfigObject { */ salesforceDomain?: string; /** - * Salesforce Security Token. + * Salesforce Security Token for username/password authentication. */ securityToken?: string; /**