-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
69 lines (64 loc) · 1.69 KB
/
config.js
File metadata and controls
69 lines (64 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Config checklist:
//
// 1. Theme content has been updated, and exports.theme points to it
// 2. Looker instance is set
// 3. Cors proxy is set (unless client-side calls not being used)
// 4. User is chosen from array of available users
// 5. User definition is correct, in particular:
// - Permissions granted
// - Models listed
exports.theme = {
location: 'themes',
name: 'default'
}
exports.looker_instance = 'https://demo.looker.com:19999'
exports.cors_proxy = 'http://localhost:8080'
var selected_user = 'standard'
users = {
standard: {
"external_user_id": "express_pbl_standard",
"first_name": "Standard",
"last_name": "EmbedUser",
"session_length": 3600,
"force_logout_login": true,
"external_group_id": "group1",
"group_ids": [],
"permissions": [
"access_data",
"see_looks",
"see_user_dashboards",
"explore",
"create_table_calculations",
"save_content",
"embed_browse_spaces"
],
"models": ["powered_by", "thelook", "thelook_adwords"],
"user_attributes": {
"locale": "en_US",
"state": "California",
"city": "Albany"
}
},
viewOnly: {
"external_user_id": "express_pbl_viewOnly",
"first_name": "ViewOnly",
"last_name": "EmbedUser",
"session_length": 3600,
"force_logout_login": true,
"external_group_id": "group1",
"group_ids": [],
"permissions": [
"access_data",
"see_looks",
"see_user_dashboards",
"embed_browse_spaces"
],
"models": ["powered_by", "thelook", "thelook_adwords"],
"user_attributes": {
"locale": "en_US",
"state": "California",
"city": "Albany"
}
}
}
exports.user = users[selected_user]