1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | import {MemoryStoreAdapter} from './lib/storage';
|
8 | import CredentialsConfig from './credentials-config';
|
9 |
|
10 |
|
11 | export default {
|
12 | maxAppLevelRedirects: 10,
|
13 | maxLocusRedirects: 5,
|
14 | maxAuthenticationReplays: 1,
|
15 | maxReconnectAttempts: 1,
|
16 | onBeforeLogout: [],
|
17 | trackingIdPrefix: 'webex-js-sdk',
|
18 | trackingIdSuffix: '',
|
19 | AlternateLogger: undefined,
|
20 | credentials: new CredentialsConfig(),
|
21 | services: {
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | discovery: {
|
28 | |
29 |
|
30 |
|
31 |
|
32 |
|
33 | hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
|
34 |
|
35 | |
36 |
|
37 |
|
38 |
|
39 |
|
40 | u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1'
|
41 | },
|
42 |
|
43 | |
44 |
|
45 |
|
46 |
|
47 |
|
48 | validateDomains: true,
|
49 |
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 | allowedDomains: [
|
56 | 'wbx2.com',
|
57 | 'ciscospark.com',
|
58 | 'webex.com',
|
59 | 'webexapis.com'
|
60 | ]
|
61 | },
|
62 | device: {
|
63 | preDiscoveryServices: {
|
64 | hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
|
65 | hydraServiceUrl: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1'
|
66 | },
|
67 | validateDomains: true,
|
68 |
|
69 | whitelistedServiceDomains: [
|
70 | 'wbx2.com',
|
71 | 'ciscospark.com',
|
72 | 'webex.com'
|
73 | ]
|
74 | },
|
75 | payloadTransformer: {
|
76 | predicates: [],
|
77 | transforms: []
|
78 | },
|
79 | storage: {
|
80 | boundedAdapter: MemoryStoreAdapter,
|
81 | unboundedAdapter: MemoryStoreAdapter
|
82 | }
|
83 | };
|