-
Notifications
You must be signed in to change notification settings - Fork 1
/
jwtResolver.html
27 lines (25 loc) · 1.04 KB
/
jwtResolver.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
<script type="text/javascript">
RED.nodes.registerType('Tydids-JWTPresentation',{
category: 'P2P Network',
color: '#3FADB5',
defaults: {
name: {value:""},
},
inputs:1,
outputs:2,
icon: "bridge.svg",
label: function() {
return this.name||"Tydids-JWTPresentation";
}
});
</script>
<script type="text/html" data-template-name="Tydids-JWTPresentation">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-tips"><b>Tip:</b> Use field <code>jwt</code> of <strong>TyDIDS-Receiver</strong> (output[1] or [3]) as input <code>msg.payload</code>.</div>
</script>
<script type="text/html" data-help-name="Tydids-JWTPresentation">
<p>Resolves a DID in a JWT and returns full resolution as <code>msg.payload</code>. Accepts Input <code>msg.payload</code> or <code>msg.payload.jwt</code> as JWT-String</p>
</script>