瀏覽代碼

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

j8
Avram Tudor 3 年之前
父節點
當前提交
5cba6c7bc7
沒有連結到貢獻者的電子郵件帳戶。
共有 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,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 查看文件

@@ -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
 

Loading…
取消
儲存