Przeglądaj źródła

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

master
Avram Tudor 4 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
 /**
6
 /**
7
  * The prefix for the vpaas tenant.
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
 // @flow
1
 // @flow
2
 
2
 
3
 import { openDialog } from '../base/dialog';
3
 import { openDialog } from '../base/dialog';
4
+import { VPAAS_TENANT_PREFIX } from '../billing-counter/constants';
4
 import { getVpaasTenant } from '../billing-counter/functions';
5
 import { getVpaasTenant } from '../billing-counter/functions';
5
 
6
 
6
 import { SET_DETAILS } from './actionTypes';
7
 import { SET_DETAILS } from './actionTypes';
31
         const state = getState();
32
         const state = getState();
32
         const baseUrl = state['features/base/config'].jaasActuatorUrl;
33
         const baseUrl = state['features/base/config'].jaasActuatorUrl;
33
         const jwt = state['features/base/jwt'].jwt;
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
         const shouldSendRequest = Boolean(baseUrl && jwt && appId);
37
         const shouldSendRequest = Boolean(baseUrl && jwt && appId);
37
 
38
 

Ładowanie…
Anuluj
Zapisz