Przeglądaj źródła

fix(jaas) fix jaas customer details endpoint (#9542)

j8
Avram Tudor 3 lat temu
rodzic
commit
5cba6c7bc7
No account linked to committer's email address

+ 1
- 1
react/features/billing-counter/constants.js Wyświetl plik

@@ -6,4 +6,4 @@ export const BILLING_ID = 'jitsiMeetId';
6 6
 /**
7 7
  * The prefix for the vpaas tenant.
8 8
  */
9
-export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie';
9
+export const VPAAS_TENANT_PREFIX = 'vpaas-magic-cookie-';

+ 2
- 1
react/features/jaas/actions.web.js Wyświetl plik

@@ -1,6 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import { openDialog } from '../base/dialog';
4
+import { VPAAS_TENANT_PREFIX } from '../billing-counter/constants';
4 5
 import { getVpaasTenant } from '../billing-counter/functions';
5 6
 
6 7
 import { SET_DETAILS } from './actionTypes';
@@ -31,7 +32,7 @@ export function getCustomerDetails() {
31 32
         const state = getState();
32 33
         const baseUrl = state['features/base/config'].jaasActuatorUrl;
33 34
         const jwt = state['features/base/jwt'].jwt;
34
-        const appId = getVpaasTenant(state);
35
+        const appId = getVpaasTenant(state).replace(VPAAS_TENANT_PREFIX, '');
35 36
 
36 37
         const shouldSendRequest = Boolean(baseUrl && jwt && appId);
37 38
 

Ładowanie…
Anuluj
Zapisz