-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo_config.py
More file actions
58 lines (45 loc) · 1.42 KB
/
Copy pathdemo_config.py
File metadata and controls
58 lines (45 loc) · 1.42 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
import os
#################################
demos = {
"signup": {
"friendly_name": "sign up",
"blurb": "Filter a registration ($registration) before the account exists."
},
"login": {
"friendly_name": "login",
"blurb": "Filter the attempt, then assess a successful login with Risk.",
"wsd": "https://www.websequencediagrams.com/files/render?link=Q9WYp8rNThVZhA1inf2FSLfjChYZTdHXyGB9zqvMNpsaAvKvJPARgo5LI5fM5K4D"
},
"account": {
"friendly_name": "account",
"blurb": "Update your profile, send a custom event, and log out."
},
"password_reset": {
"friendly_name": "password reset",
"blurb": "Record a password-reset event ($profile_reset) with the non-blocking log endpoint."
},
"lists": {
"friendly_name": "lists",
"blurb": "Create and fetch lists with the Lists API."
},
"privacy": {
"friendly_name": "privacy",
"blurb": "Request or delete a user's data with the Privacy API."
},
"webhooks": {
"friendly_name": "webhooks",
"blurb": "Verify and inspect incoming Castle webhooks."
}
}
#################################
demo_list = []
for k, v in demos.items():
e = {}
e["url"] = k
for key, value in v.items():
e[key] = value
demo_list.append(e)
#################################
valid_urls = []
for k, v in demos.items():
valid_urls.append(k)