forked from SAP-archive/yaas-node-red-contrib-yaas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcredentials.html
66 lines (63 loc) · 2.63 KB
/
credentials.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<script type="text/javascript">
RED.nodes.registerType('yaas-credentials',{
category: 'config',
defaults: {
name : {value:""},
client_id: {value:"",required:true},
application_id: { value:"", required:true}
},
credentials: {
client_secret: {type: "password", required:true}
},
label: function() {
return this.name || this.application_id;
}
});
</script>
<script type="text/x-red" data-template-name="yaas-credentials">
<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="Name of YaaS Credentials (optional)">
</div>
<div class="form-row">
<label for="node-config-input-client_id"><i class="fa fa-tag"></i> Client ID</label>
<input type="text" id="node-config-input-client_id" placeholder="Client Credentials of Client ID">
</div>
<div class="form-row">
<label for="node-config-input-client_secret"><i class="fa fa-lock"></i> Client Secret</label>
<input type="password" id="node-config-input-client_secret" placeholder="Client Credentials of Client Secret">
</div>
<div class="form-row">
<label for="node-config-input-application_id"><i class="fa fa-user"></i> Application ID</label>
<input type="text" id="node-config-input-application_id" placeholder="Identifier">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('yaas-customer-credentials',{
category: 'config',
defaults: {
name : {value:""},
email: {value:"",required:true}
},
credentials: {
password: {type: "password", required:true}
},
label: function() {
return this.name || this.email;
}
});
</script>
<script type="text/x-red" data-template-name="yaas-customer-credentials">
<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="Name of Customer Credentials (optional)">
</div>
<div class="form-row">
<label for="node-config-input-email"><i class="fa fa-envelope"></i> E-Mail</label>
<input type="text" id="node-config-input-email" placeholder="Customer E-Mail Address">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-lock"></i> Password</label>
<input type="password" id="node-config-input-password" placeholder="Customer Password">
</div>
</script>