|
| 1 | +section#debugger-io.debugger-jwt |
| 2 | + .container |
| 3 | + //- a(name='debugger') |
| 4 | + h1 Debugger |
| 5 | + |
| 6 | + .jwt-playground |
| 7 | + .selections |
| 8 | + .algorithm |
| 9 | + span Algorithm |
| 10 | + .jwt-select |
| 11 | + select#algorithm-select |
| 12 | + option(name='algorithm',value='HS256', selected='') HS256 |
| 13 | + option(name='algorithm',value='HS384') HS384 |
| 14 | + option(name='algorithm',value='HS512') HS512 |
| 15 | + option(name='algorithm',value='RS256') RS256 |
| 16 | + option(name='algorithm',value='RS384') RS384 |
| 17 | + option(name='algorithm',value='RS512') RS512 |
| 18 | + option(name='algorithm',value='ES256') ES256 |
| 19 | + option(name='algorithm',value='ES384') ES384 |
| 20 | + //- Unsupported by jsrsasign |
| 21 | + option(name='algorithm',value='ES512') ES512 |
| 22 | + option(name='algorithm',value='PS256') PS256 |
| 23 | + option(name='algorithm',value='PS384') PS384 |
| 24 | + option(name='algorithm',value='PS512') PS512 |
| 25 | + |
| 26 | + .algorithm-code |
| 27 | + .tab-nav |
| 28 | + .tab-link.current |
| 29 | + a(href='#encoded-jwt') Encoded |
| 30 | + small paste a token here |
| 31 | + .tab-link |
| 32 | + a(href='#decoded-jwt') Decoded |
| 33 | + small edit the payload and secret |
| 34 | + |
| 35 | + .tab-content |
| 36 | + #encoded-jwt.box-content.current |
| 37 | + .input.js-input |
| 38 | + #decoded-jwt.box-content |
| 39 | + .output |
| 40 | + .jwt-explained.jwt-header |
| 41 | + p.text-line HEADER: |
| 42 | + span ALGORITHM & TOKEN TYPE |
| 43 | + .js-header |
| 44 | + |
| 45 | + .jwt-explained.jwt-payload |
| 46 | + p.text-line PAYLOAD: |
| 47 | + span DATA |
| 48 | + .js-payload |
| 49 | + #js-payload-tooltip placeholder |
| 50 | + |
| 51 | + .jwt-explained.jwt-signature |
| 52 | + p.text-line VERIFY SIGNATURE |
| 53 | + pre.pre-encode.HS256. |
| 54 | + <span id="hmacsha-text">HMACSHA256</span>( |
| 55 | + base64UrlEncode(header) + "." + |
| 56 | + base64UrlEncode(payload), |
| 57 | + <input type="text" name="secret" value="secret"> |
| 58 | + )<span class="is-base64-encoded-label"> <input id="is-base64-encoded" type="checkbox" name="is-base64-encoded"><label for="is-base64-encoded">secret base64 encoded</label></span> |
| 59 | + pre.pre-encode.RS256. |
| 60 | + <span id="rsasha-text">RSASHA256</span>( |
| 61 | + base64UrlEncode(header) + "." + |
| 62 | + base64UrlEncode(payload), |
| 63 | + <textarea rows="4" name="public-key" placeholder="Public Key or Certificate. Enter it in plain text only if you want to verify a token"></textarea>, |
| 64 | + <textarea rows="5" name="private-key" placeholder="Private Key. Enter the it in plain text only if you want to generate a new token. The key never leaves your browser."></textarea> |
| 65 | + ) |
| 66 | + |
| 67 | + .validation-status.js-signature |
0 commit comments