mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 21:19:43 -08:00
fix(core): update oauth endpoints to use instance base url
This commit is contained in:
parent
461848fcc4
commit
dd3ba96372
|
@ -254,6 +254,9 @@ class App {
|
|||
telemetrySettings.config = { key, url };
|
||||
}
|
||||
|
||||
// Define it here to avoid calling the function multiple times
|
||||
const instanceBaseUrl = getInstanceBaseUrl();
|
||||
|
||||
this.frontendSettings = {
|
||||
endpointWebhook: this.endpointWebhook,
|
||||
endpointWebhookTest: this.endpointWebhookTest,
|
||||
|
@ -264,11 +267,11 @@ class App {
|
|||
maxExecutionTimeout: this.maxExecutionTimeout,
|
||||
timezone: this.timezone,
|
||||
urlBaseWebhook,
|
||||
urlBaseEditor: getInstanceBaseUrl(),
|
||||
urlBaseEditor: instanceBaseUrl,
|
||||
versionCli: '',
|
||||
oauthCallbackUrls: {
|
||||
oauth1: `${urlBaseWebhook}${this.restEndpoint}/oauth1-credential/callback`,
|
||||
oauth2: `${urlBaseWebhook}${this.restEndpoint}/oauth2-credential/callback`,
|
||||
oauth1: `${instanceBaseUrl}/${this.restEndpoint}/oauth1-credential/callback`,
|
||||
oauth2: `${instanceBaseUrl}/${this.restEndpoint}/oauth2-credential/callback`,
|
||||
},
|
||||
versionNotifications: {
|
||||
enabled: config.getEnv('versionNotifications.enabled'),
|
||||
|
|
Loading…
Reference in a new issue