Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Update dropbox redirect uri to always use the main domain static page.

damenchob3a05db286f5
diff --git a/config.js b/config.js
index 559bb6db3c..7abf2e7726 100644
--- a/config.js
+++ b/config.js
@@ -174,6 +174,11 @@ var config = {
// Enable the dropbox integration.
// dropbox: {
// appKey: '<APP_KEY>' // Specify your app key here.
+ // // A URL to redirect the user to, after authenticating
+ // // by default uses:
+ // // 'https://jitsi-meet.example.com/static/oauth.html'
+ // redirectURI:
+ // 'https://jitsi-meet.example.com/subfolder/static/oauth.html'
// },
// Whether to enable live streaming or not.
diff --git a/react/features/dropbox/actions.js b/react/features/dropbox/actions.js
index 431db59a60..b6bbf1abc3 100644
--- a/react/features/dropbox/actions.js
+++ b/react/features/dropbox/actions.js
@@ -1,7 +1,5 @@
// @flow
-import { getLocationContextRoot } from '../base/util';
-
import { UPDATE_DROPBOX_TOKEN } from './actionTypes';
import { _authorizeDropbox } from './functions';
@@ -15,8 +13,14 @@ export function authorizeDropbox() {
const state = getState();
const { locationURL } = state['features/base/connection'];
const { dropbox = {} } = state['features/base/config'];
- const redirectURI = `${locationURL.origin
- + getLocationContextRoot(locationURL)}static/oauth.html`;
+
+ // By default we use the static page on the main domain for redirection.
+ // So we need to setup only one redirect URI in dropbox app
+ // configuration (not multiple for all the tenants).
+ // In case deployment is running in subfolder dropbox.redirectURI
+ // can be configured.
+ const redirectURI
+ = dropbox.redirectURI || `${locationURL.origin}/static/oauth.html`;
_authorizeDropbox(dropbox.appKey, redirectURI)
.then(