-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom_authentication.hjson
56 lines (55 loc) · 1.97 KB
/
custom_authentication.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
[
{
type: 'custom_authentication_gen_key',
module : 'custom_authentication',
action : 'gen_key',
groupTitle : 'Custom Authentication',
groupIcon : 'fas fa-lg fa-key comp-data',
title : 'Generate Key @@var(actionName)@@',
icon : 'fas fa-lg fa-key comp-data',
dataPickObject: true,
dataScheme: [
{name: 'secret', type: 'text'},
{name: 'dataURL', type: 'text'}
] ,
properties : [
{
group: 'File Location',
variables: [
{ name: 'actionName', optionName: 'name', title: 'Name',
type: 'text', required: true, defaultValue: ''},
{ name: 'applicationName', optionName: 'applicationName', title: 'Application Name',
type: 'text', required: true, defaultValue: 'My Company', help: 'Displayed in Authentication App'},
{ name: 'output', optionName: 'output', title: 'Output', type: 'boolean', defaultValue: false }
]
}
]
},
{
type: 'custom_authentication_verify_token',
module : 'custom_authentication',
action : 'verify_token',
groupTitle : 'Custom Authentication',
groupIcon : 'fas fa-lg fa-key comp-data',
title : 'Verify Token @@var(actionName)@@',
icon : 'fas fa-lg fa-key comp-data',
dataPickObject: true,
dataScheme: [
{name: 'valid_token', type: 'boolean'}
],
properties : [
{
group: 'Token Validation',
variables: [
{ name: 'actionName', optionName: 'name', title: 'Name',
type: 'text', required: true, defaultValue: ''},
{ name: 'user_token', optionName: 'user_token', title: 'User Token',
type: 'text', required: true, defaultValue: '', serverDataBindings: true, help: 'The authenticator code'},
{ name: 'secret', optionName: 'secret', title: 'User Secret',
type: 'text', required: true, defaultValue: '', serverDataBindings: true, help: 'The shared secret for this user'},
{ name: 'output', optionName: 'output', title: 'Output', type: 'boolean', defaultValue: false }
]
}
]
}
]