UNPKG

1.93 kBJavaScriptView Raw
1/*!
2 * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3 */
4
5/* eslint camelcase: [0] */
6
7import {MemoryStoreAdapter} from './lib/storage';
8import CredentialsConfig from './credentials-config';
9
10
11export 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 * A list of services that are available prior to catalog collection.
24 *
25 * @type {Object}
26 */
27 discovery: {
28 /**
29 * The hydra discovery url.
30 *
31 * @type {string}
32 */
33 hydra: process.env.HYDRA_SERVICE_URL || 'https://api.ciscospark.com/v1',
34
35 /**
36 * The u2c discovery url
37 *
38 * @type {string}
39 */
40 u2c: process.env.U2C_SERVICE_URL || 'https://u2c.wbx2.com/u2c/api/v1'
41 },
42
43 /**
44 * When true, considers all urls in `allowedDomains` as safe for auth tokens
45 *
46 * @type {boolean}
47 */
48 validateDomains: true,
49
50 /**
51 * Contains a list of allowed domain host addresses.
52 *
53 * @type {Array<string>}
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 // It is okay to pass the auth token to the following domains:
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};