-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure_config.html
52 lines (46 loc) · 1.7 KB
/
azure_config.html
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
<script type="text/javascript">
RED.nodes.registerType('azure_config', {
category: 'config',
defaults: {
name: { value: '' },
},
credentials: {
tenantId: { type: 'text', required: true },
clientId: { type: 'text', required: true },
clientSecret: { type: 'text', required: true }
},
label: function () {
return this.name || 'Azure AD Config';
},
});
</script>
<script type="text/html" data-template-name="azure_config">
<div class="form-row">
<label for="node-config-input-name">
<i class="fa fa-tag"></i> Name
</label>
<input type="text" id="node-config-input-name" placeholder="Configuration node name" />
</div>
<div class="form-row">
<label for="node-config-input-tenantId">
<i class="fa fa-key"></i> Tenant Id
</label>
<input type="text" id="node-config-input-tenantId" placeholder="Enter your Tenant Id" />
</div>
<div class="form-row">
<label for="node-config-input-clientId">
<i class="fa fa-key"></i> Client Id
</label>
<input type="text" id="node-config-input-clientId" placeholder="Enter your Client Id" />
</div>
<div class="form-row">
<label for="node-config-input-clientSecret">
<i class="fa fa-key"></i> Client Secret
</label>
<input type="text" id="node-config-input-clientSecret" placeholder="Enter your Client Secret" />
</div>
</script>
<script type="text/x-red" data-help-name="azure_config">
<p>A configuration node for Azure Ad integration.</p>
<p>Enter required data for integration: Tenant Id, Client Secret, Client Id</p>
</script>