Skip to content

Commit f7952f3

Browse files
authored
Salesforce domain must be salesfore.com instead of .force (#11456)
1 parent e3ea0ea commit f7952f3

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

front/components/data_source/SalesforceOAuthExtractConfig.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export function SalesforceOauthExtraConfig({
100100
message={
101101
isPkceError
102102
? "Error loading Salesforce OAuth credentials. Check if your url is correct and try again or contact us at [email protected]."
103-
: "Must be a valid Salesforce domain in https and ending with .salesforce.com or .force.com"
103+
: "Must be a valid Salesforce domain in https and ending with .salesforce.com"
104104
}
105105
name="instance_url"
106106
value={extraConfig.instance_url ?? ""}

front/lib/api/config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ const config = {
153153
getOAuthZendeskClientId: (): string => {
154154
return EnvironmentConfig.getEnvVariable("OAUTH_ZENDESK_CLIENT_ID");
155155
},
156-
getOAuthSalesforceClientId: (): string => {
157-
return EnvironmentConfig.getEnvVariable("OAUTH_SALESFORCE_CLIENT_ID");
158-
},
159156
// Text extraction.
160157
getTextExtractionUrl: (): string => {
161158
return EnvironmentConfig.getEnvVariable("TEXT_EXTRACTION_URL");

front/types/oauth/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function isValidSalesforceDomain(s: unknown): s is string {
6363
return (
6464
typeof s === "string" &&
6565
s.startsWith("https://") &&
66-
(s.endsWith(".salesforce.com") || s.endsWith(".force.com"))
66+
s.endsWith(".salesforce.com")
6767
);
6868
}
6969

0 commit comments

Comments
 (0)