-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (101 loc) · 4.37 KB
/
index.html
File metadata and controls
104 lines (101 loc) · 4.37 KB
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>
JWT Debugger
</title>
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div class="container">
<h1>Debugger</h1>
<div class="info">
<strong class="info__strong">Warning:</strong> We do not record tokens, all validation and debugging is done
on the client side.
</div>
<div class="selections">
<div class="algorithm">
<span class="algorithm__span">ALGORITHM</span>
<div class="algorithm__select">
<select class="algorithm__select--custom-arrow">
<option>HMACSHA256</option>
</select>
</div>
</div>
</div>
<div class="code">
<div class="comm-process">
<div class="comm-process__title">
<a class="comm-process__a" href="#">
Encoded
<small class="comm-process__small">PASTE A TOKEN HERE</small>
</a>
</div>
<div class="comm-process__title">
<a class="comm-process__a" href="#">
Decoded
<small class="comm-process__small">CHECK DE DECODED TOKEN HERE</small>
</a>
</div>
</div>
<div class="tab-content">
<div class="box-content">
<div class="output">
<div class="textarea__input">
<textarea placeholder="Write the encoded token here"></textarea>
</div>
</div>
</div>
<div class="box-content">
<div class="output">
<div class="jwt-header">
<p class="output__p output__p-no-border-top">HEADER:<span>ALGORITHM & TOKEN TYPE</span></p>
<div class="jwt-header__precode">
<pre contenteditable="true" class="jwt-header__code">Code right here</pre>
</div>
</div>
<div class="jwt-payload">
<p class="output__p">PAYLOAD:<span>DATA</span></p>
<div class="jwt-payload__precode">
<pre contenteditable="true" class="jwt-payload__code">Code right here</pre>
</div>
</div>
<div class="jwt-security">
<p class="output__p">VERIFY SIGNATURE</p>
<div class="jwt-security__precode">
<div class="jwt-security__code">
<span id="js-jwt-security__span">HMACSHA256</span>
(<br>
  base64UrlEncode(header) + "." +<br>
  base64UrlEncode(payload),<br>
  <input type="text" id="js-json-security__secret"
class="json-security__secret" value="your-256-bit-secret"><br>
)
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="share">
<div class="share__text">
Waiting Response
</div>
<div class="btn-wrap">
<button class="btn-wrap__btn">
<span class="btn-wrap__span">CHECK TOKEN </span>
</button>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/hmac-sha256.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/enc-base64.min.js"></script>
<!-- <script src="base64.js"></script> -->
<script src="js/TokenManager.js"></script>
<script src="js/index.js"></script>
</body>
</html>