UNPKG

node-red-contrib-aws-signature-request-ad

Version:
58 lines (52 loc) 2.11 kB
<!-- Copyright 2014 IBM Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <script type="text/x-red" data-template-name="aws-signature-auth"> <div id="node-config-pocket-keys"> <div class="form-row"> <label for="node-config-input-accessKey"><i class="fa fa-user"></i> Access key</label> <input type="text" id="node-config-input-accessKey" placeholder="Your access key"> </div> <div class="form-row"> <label for="node-config-input-secretKey"><i class="fa fa-user"></i> Secret key</label> <input type="text" id="node-config-input-secretKey" placeholder="Your secret key"> </div> </div> <div id="pocket-display" style="display: none;"> <div class="form-row"> <label for="node-config-input-displayName"><i class="fa fa-user"></i> Name</label> <input type="text" id="node-config-input-displayName"> </div> </div> </script> <script type="text/javascript"> RED.nodes.registerType('aws-signature-auth', { category: 'config', defaults: { displayName: { value: "" } }, credentials: { accessKey: { type: "text" }, secretKey: { type: "password" } }, label: function () { return this.displayName || this._("aws-signature-auth"); }, exportable: false, oneditprepare: function () { }, oneditsave: function () { }, oneditcancel: function () { } }); </script>