瀏覽代碼

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

master
Avram Tudor 3 年之前
父節點
當前提交
5cba6c7bc7
No account linked to committer's email address
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 1
    1
      react/features/billing-counter/constants.js
  2. 2
    1
      react/features/jaas/actions.web.js

+ 1
- 1
react/features/billing-counter/constants.js 查看文件

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 查看文件

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
 

Loading…
取消
儲存