-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity_restrict.hjson
143 lines (143 loc) · 3.88 KB
/
security_restrict.hjson
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[
{
"type": "security_restrict",
"module": "security_restrict",
"action": "restricts",
"groupTitle": "Security Provider",
"groupIcon": "fas fa-lg fa-lock comp-security",
"title": "Security Restrict v2",
"icon": "fas fa-lg fa-lock comp-security",
"state": "opened",
"properties": [
{
"group": "Restrict Properties",
"variables": [
{
"name": "restrictName",
"optionName": "name",
"title": "ID",
"type": "text",
"defaultValue": "",
"required": true,
"baseName": "security"
},
{
"name": "restrictProvider",
"optionName": "provider",
"title": "Provider",
"type": "text",
"required": true,
"defaultValue": "",
"valuesFromModule": "auth",
"valuesFromAction": "provider",
"valuesFromFunction": "getConnectActionsAbove"
},
{
"name": "restrictCondition",
"optionName": "condition",
"title": "Condition",
"type": "droplist",
"values": [
{
"title": "OR",
"value": "OR"
},
{
"title": "AND",
"value": "AND"
}
],
"defaultValue": ""
},
{
"name": "restrictDynamicPermissions",
"optionName": "dynamicPermissions",
"title": "Dynamic Permissions",
"serverDataBindings": true,
"type": "text",
"help": "Choose specific permission levels or leave it empty for all logged in users"
},
{
"name": "loginUrl",
"optionName": "loginUrl",
"type": "file",
"routePicker": true,
"serverDataBindings": true,
"title": "Login URL",
"defaultValue": "",
"help": "If User Not Logged In, Go To"
},
{
"name": "forbiddenUrl",
"optionName": "forbiddenUrl",
"type": "file",
"routePicker": true,
"serverDataBindings": true,
"title": "Forbidden URL",
"defaultValue": "",
"help": "If User Is Unauthorized, Go To"
}
]
},
{
"group": "Cookie Options",
"variables": [
{
"name": "cookieDomain",
"optionName": "domain",
"title": "Domain",
"type": "text",
"defaultValue": ""
},
{
"name": "cookiePath",
"optionName": "path",
"title": "Path",
"type": "text",
"defaultValue": "/"
},
{
"name": "cookieExpires",
"optionName": "expires",
"title": "Expires",
"type": "number",
"defaultValue": "30",
"help": "Number of days when the cookie will expire"
},
{
"name": "cookieSecure",
"optionName": "secure",
"title": "Secure",
"type": "boolean",
"defaultValue": false
},
{
"name": "cookieSameSite",
"optionName": "sameSite",
"title": "Same Site",
"type": "droplist",
"defaultValue": "",
"values": [
{
"title": "Default",
"value": ""
},
{
"title": "None",
"value": "None"
},
{
"title": "Lax",
"value": "Lax"
},
{
"title": "Strict",
"value": "Strict"
}
]
}
]
}
]
}
]