-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2083 lines (1961 loc) · 66.8 KB
/
Copy pathindex.html
File metadata and controls
2083 lines (1961 loc) · 66.8 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SAML Response Decoder</title>
<script>
// Prevent flash of wrong theme by setting data-theme before styles load
;(function () {
var theme = 'light'
// Apply system preference first, if available
if (
typeof window.matchMedia === 'function' &&
window.matchMedia('(prefers-color-scheme: dark)').matches
) {
theme = 'dark'
}
// Override with saved preference, if accessible
try {
var saved = localStorage.getItem('samlresponse-decoder:theme')
if (saved === 'light' || saved === 'dark') {
theme = saved
}
} catch (e) {
// localStorage unavailable; keep system-based theme
}
document.documentElement.setAttribute('data-theme', theme)
})()
</script>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<style>
:root {
/* Colours - Neutral */
--color-bg-primary: #f6f8fa;
--color-bg-secondary: white;
--color-bg-tertiary: #f6f8fa;
--color-text-primary: #24292f;
--color-text-secondary: #57606a;
--color-border: #d0d7de;
/* Colours - Interactive */
--color-accent: #0969da;
--color-accent-hover: #0550ae;
--color-btn-primary: #2da44e;
--color-btn-primary-hover: #2c974b;
--color-btn-secondary: #6e7781;
--color-btn-secondary-hover: #57606a;
--color-btn-dark: #24292f;
--color-btn-dark-hover: #32383f;
--color-btn-text: #ffffff;
/* Colours - Status */
--color-valid-bg: #dafbe1;
--color-valid-text: #1a7f37;
--color-error-bg: #ffebe9;
--color-error-text: #cf222e;
--color-error-border: #ff8182;
--color-warning-bg: #fff8c5;
--color-warning-text: #9a6700;
--color-info-bg: #ddf4ff;
--color-info-border: #54aeff;
--color-info-text: #0969da;
--color-accent-shadow: rgba(9, 105, 218, 0.15);
--color-modal-overlay: rgba(0, 0, 0, 0.5);
--color-modal-shadow: rgba(0, 0, 0, 0.3);
}
[data-theme='dark'] {
/* Colours - Neutral */
--color-bg-primary: #0d1117;
--color-bg-secondary: #161b22;
--color-bg-tertiary: #21262d;
--color-text-primary: #c9d1d9;
--color-text-secondary: #8b949e;
--color-border: #30363d;
/* Colours - Interactive */
--color-accent: #58a6ff;
--color-accent-hover: #79b8ff;
--color-btn-primary: #238636;
--color-btn-primary-hover: #2ea043;
--color-btn-secondary: #30363d;
--color-btn-secondary-hover: #484f58;
--color-btn-dark: #21262d;
--color-btn-dark-hover: #30363d;
--color-btn-text: #ffffff;
/* Colours - Status */
--color-valid-bg: #1f352a;
--color-valid-text: #3fb950;
--color-error-bg: #3d1f20;
--color-error-text: #f85149;
--color-error-border: #f85149;
--color-warning-bg: #3d2e00;
--color-warning-text: #d29922;
--color-info-bg: #1a2332;
--color-info-border: #58a6ff;
--color-info-text: #58a6ff;
--color-accent-shadow: rgba(88, 166, 255, 0.15);
--color-modal-overlay: rgba(0, 0, 0, 0.7);
--color-modal-shadow: rgba(0, 0, 0, 0.5);
}
* {
box-sizing: border-box;
}
body {
font-family:
-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
sans-serif;
max-width: 1000px;
margin: 0 auto;
padding: 20px;
background: var(--color-bg-primary);
color: var(--color-text-primary);
transition:
background-color 0.3s ease,
color 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition: none !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;
}
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid var(--color-border);
padding-bottom: 10px;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
border-bottom: none;
padding-bottom: 0;
}
.theme-toggle {
background: var(--color-bg-tertiary);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
font-size: 16px;
color: var(--color-text-primary);
margin-right: 0;
transition:
background-color 0.2s ease,
border-color 0.2s ease;
}
.theme-toggle:hover {
background: var(--color-bg-secondary);
border-color: var(--color-accent);
}
.theme-toggle:focus {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
.theme-toggle .icon-light {
display: none;
}
.theme-toggle .icon-dark {
display: inline;
}
[data-theme='dark'] .theme-toggle .icon-light {
display: inline;
}
[data-theme='dark'] .theme-toggle .icon-dark {
display: none;
}
h1 {
color: var(--color-text-primary);
border-bottom: 1px solid var(--color-border);
padding-bottom: 10px;
}
.input-section {
margin-bottom: 20px;
}
label {
display: block;
font-weight: 600;
margin-bottom: 8px;
}
textarea {
width: 100%;
height: 150px;
padding: 12px;
border: 1px solid var(--color-border);
border-radius: 6px;
font-family: monospace;
font-size: 13px;
resize: vertical;
background-color: var(--color-bg-secondary);
color: var(--color-text-primary);
}
textarea::placeholder {
color: var(--color-text-secondary);
}
textarea:focus {
outline: none;
border-color: var(--color-accent);
box-shadow: 0 0 0 3px var(--color-accent-shadow);
}
button {
background: var(--color-btn-primary);
color: var(--color-btn-text);
border: none;
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
margin-right: 10px;
}
button:hover {
background: var(--color-btn-primary-hover);
}
button.secondary {
background: var(--color-btn-secondary);
}
button.secondary:hover {
background: var(--color-btn-secondary-hover);
}
.results {
display: none;
}
.results.show {
display: block;
}
.section {
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: 6px;
margin-bottom: 16px;
overflow: hidden;
}
.section-header {
background: var(--color-bg-primary);
padding: 12px 16px;
font-weight: 600;
border-bottom: 1px solid var(--color-border);
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.section-body {
padding: 16px;
}
.field {
margin-bottom: 12px;
}
.field:last-child {
margin-bottom: 0;
}
.field-label {
font-size: 12px;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-bottom: 4px;
cursor: help;
transition: color 0.2s ease;
}
.field-label[title]:hover {
color: var(--color-accent);
}
.field-value {
font-family: monospace;
font-size: 14px;
word-break: break-all;
background: var(--color-bg-tertiary);
padding: 8px;
border-radius: 4px;
}
.field-value.valid {
background: var(--color-valid-bg);
color: var(--color-valid-text);
}
.field-value.expired,
.field-value.error {
background: var(--color-error-bg);
color: var(--color-error-text);
}
.field-value.warning {
background: var(--color-warning-bg);
color: var(--color-warning-text);
}
#error {
background: var(--color-error-bg);
border: 1px solid var(--color-error-border);
color: var(--color-error-text);
padding: 12px 16px;
border-radius: 6px;
margin-bottom: 16px;
}
.privacy-notice {
background: var(--color-info-bg);
border: 1px solid var(--color-info-border);
color: var(--color-info-text);
padding: 10px 14px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 14px;
}
.help-section {
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: 6px;
margin-bottom: 16px;
}
.help-section summary {
padding: 12px 16px;
cursor: pointer;
font-weight: 600;
user-select: none;
}
.help-section summary:hover {
background: var(--color-bg-primary);
}
.help-content {
padding: 0 16px 16px 16px;
border-top: 1px solid var(--color-border);
}
.help-content h3 {
font-size: 14px;
margin: 16px 0 8px 0;
}
.help-content ol,
.help-content ul {
margin: 0;
padding-left: 24px;
}
.help-content li {
margin-bottom: 4px;
font-size: 14px;
}
.help-content code {
background: var(--color-bg-tertiary);
padding: 2px 6px;
border-radius: 4px;
font-size: 13px;
}
.help-content a {
color: var(--color-accent);
}
/* Modal styles */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--color-modal-overlay);
z-index: 100;
justify-content: center;
align-items: center;
}
.modal-overlay.show {
display: flex;
}
.modal {
background: var(--color-bg-secondary);
border-radius: 8px;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 8px 32px var(--color-modal-shadow);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
border-bottom: 1px solid var(--color-border);
}
.modal-header h2 {
margin: 0;
font-size: 18px;
}
.modal-close {
background: none;
border: none;
font-size: 24px;
font-weight: normal;
cursor: pointer;
color: var(--color-text-secondary);
padding: 0;
line-height: 1;
}
.modal-close:hover {
color: var(--color-text-primary);
}
.modal-body {
padding: 16px;
}
.help-btn {
background: var(--color-accent);
font-size: 12px;
padding: 4px 8px;
margin-left: 8px;
margin-right: 0;
vertical-align: middle;
}
.help-btn:hover {
background: var(--color-accent-hover);
}
/* Field reference table styles */
.field-ref-table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.field-ref-table th,
.field-ref-table td {
padding: 8px 12px;
text-align: left;
border-bottom: 1px solid var(--color-border);
}
.field-ref-table th {
background: var(--color-bg-tertiary);
font-weight: 600;
}
.field-ref-table tr:last-child td {
border-bottom: none;
}
.field-ref-table code {
background: var(--color-bg-tertiary);
padding: 2px 6px;
border-radius: 4px;
font-size: 12px;
}
.footer {
margin-top: 32px;
padding: 16px;
text-align: center;
font-size: 13px;
color: var(--color-text-secondary);
border-top: 1px solid var(--color-border);
}
.footer a {
color: var(--color-accent);
text-decoration: none;
}
.footer a:hover {
text-decoration: underline;
}
.cert-details {
margin-top: 12px;
}
.cert-details summary {
cursor: pointer;
font-size: 13px;
color: var(--color-accent);
user-select: none;
}
.cert-details summary:hover {
text-decoration: underline;
}
.cert-raw {
margin-top: 8px;
padding: 12px;
background: var(--color-bg-tertiary);
border-radius: 6px;
font-size: 11px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
}
.xml-details {
margin-top: 0;
}
.xml-details summary {
cursor: pointer;
font-size: 13px;
color: var(--color-accent);
user-select: none;
}
.xml-details summary:hover {
text-decoration: underline;
}
.xml-container {
position: relative;
}
.copy-btn {
position: absolute;
top: 8px;
right: 8px;
background: var(--color-btn-dark);
color: var(--color-btn-text);
border: none;
padding: 6px 12px;
border-radius: 4px;
font-size: 12px;
cursor: pointer;
z-index: 1;
}
.copy-btn:hover {
background: var(--color-btn-dark-hover);
}
.copy-btn.copied {
background: var(--color-btn-primary);
}
.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.xml-raw {
margin-top: 8px;
padding: 12px;
background: var(--color-bg-tertiary);
border-radius: 6px;
font-size: 11px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
max-height: 400px;
overflow-y: auto;
}
/* Mobile responsive styles */
@media (max-width: 600px) {
body {
padding: 12px;
}
h1 {
font-size: 1.4em;
}
/* Table: stack rows on mobile */
.field-ref-table,
.field-ref-table thead,
.field-ref-table tbody,
.field-ref-table tr,
.field-ref-table th,
.field-ref-table td {
display: block;
}
.field-ref-table thead {
display: none;
}
.field-ref-table tr {
margin-bottom: 12px;
border: 1px solid var(--color-border);
border-radius: 6px;
overflow: hidden;
}
.field-ref-table td {
border-bottom: none;
padding: 10px 12px;
}
.field-ref-table td:first-child {
background: var(--color-bg-tertiary);
font-weight: 600;
}
/* Modal: full width on mobile */
.modal {
margin: 16px;
max-width: calc(100% - 32px);
max-height: calc(100vh - 32px);
}
.modal-close {
font-size: 28px;
padding: 4px 8px;
}
.help-btn {
padding: 8px 12px;
font-size: 13px;
}
}
</style>
</head>
<body>
<header class="header">
<h1><span aria-hidden="true">🔐</span> SAML Response Decoder</h1>
<button
class="theme-toggle"
id="themeToggle"
type="button"
aria-label="Toggle colour theme"
aria-pressed="false"
>
<span class="icon-light" aria-hidden="true">☀️</span>
<span class="icon-dark" aria-hidden="true">🌙</span>
</button>
<script>
// Helper to sync theme toggle ARIA - defined early so both scripts can use it
function updateThemeToggleA11y(btn, theme) {
if (!btn || (theme !== 'light' && theme !== 'dark')) return
var isDark = theme === 'dark'
btn.setAttribute('aria-pressed', isDark ? 'true' : 'false')
btn.setAttribute(
'aria-label',
isDark ? 'Switch to light mode' : 'Switch to dark mode'
)
}
// Sync immediately after button is in DOM
;(function () {
var btn = document.getElementById('themeToggle')
var theme = document.documentElement.getAttribute('data-theme')
updateThemeToggleA11y(btn, theme)
})()
</script>
</header>
<main>
<p class="privacy-notice">
<span aria-hidden="true">🔒</span> All decoding happens locally in your
browser. No data is sent to any server.
</p>
<details class="help-section">
<summary>
<span aria-hidden="true">📖</span> How to capture a SAML Response
</summary>
<div class="help-content">
<h3>Chrome / Edge</h3>
<ol>
<li>
Open Developer Tools (<code>F12</code> or
<code>Cmd+Option+I</code> on Mac)
</li>
<li>Go to the <strong>Network</strong> tab</li>
<li>Check <strong>Preserve log</strong></li>
<li>Initiate the SAML login flow (sign in to the app)</li>
<li>
Look for a POST request to a URL containing
<code>/saml/consume</code> or <code>/acs</code>
</li>
<li>
Click on the request, go to the <strong>Payload</strong> tab
</li>
<li>
Find the <code>SAMLResponse</code> parameter and copy its value
</li>
</ol>
<h3>Firefox</h3>
<ol>
<li>
Open Developer Tools (<code>F12</code> or
<code>Cmd+Option+I</code> on Mac)
</li>
<li>
Go to the <strong>Network</strong> tab and check
<strong>Persist Logs</strong>
</li>
<li>Initiate the SAML login flow</li>
<li>Look for the POST request to the ACS URL</li>
<li>
Click on the request, go to the <strong>Request</strong> tab
</li>
<li>Find and copy the <code>SAMLResponse</code> value</li>
</ol>
<h3>Browser Extensions</h3>
<ul>
<li>
<a
href="https://addons.mozilla.org/en-US/firefox/addon/saml-tracer/"
target="_blank"
rel="noopener"
>SAML-tracer</a
>
(Firefox)
</li>
<li>
<a
href="https://chrome.google.com/webstore/detail/saml-chrome-panel/paijfdbeoenhembfhkhllainmocckace"
target="_blank"
rel="noopener"
>SAML Chrome Panel</a
>
(Chrome)
</li>
</ul>
</div>
</details>
<div
id="helpModal"
class="modal-overlay"
role="dialog"
aria-modal="true"
aria-labelledby="helpModalTitle"
onclick="if(event.target === event.currentTarget) closeModal('helpModal')"
>
<div class="modal">
<div class="modal-header">
<h2 id="helpModalTitle">
<span aria-hidden="true">📜</span> X.509 Certificate Fields
</h2>
<button
class="modal-close"
aria-label="Close modal"
onclick="closeModal('helpModal')"
>
×
</button>
</div>
<div class="modal-body">
<table class="field-ref-table">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>Issuer</code></td>
<td>
The Certificate Authority (CA) or entity that issued this
certificate. Shows the organisation that vouches for the
certificate's authenticity.
</td>
</tr>
<tr>
<td><code>Subject</code></td>
<td>
The entity this certificate was issued to — typically the
Identity Provider (IdP). This identifies who owns the
certificate.
</td>
</tr>
<tr>
<td><code>Valid From</code></td>
<td>
The date/time when this certificate became valid. Shows
<span style="color: var(--color-warning-text)"
>warning</span
>
if not yet valid.
</td>
</tr>
<tr>
<td><code>Valid Until</code></td>
<td>
The date/time when this certificate expires. Shows
<span style="color: var(--color-error-text)">EXPIRED</span>
if past this date. Certificate renewal required before
expiry.
</td>
</tr>
<tr>
<td><code>Signature Algorithm</code></td>
<td>
The cryptographic algorithm used to sign this certificate
(e.g., SHA256withRSA). Older algorithms like SHA1 may
indicate security concerns.
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- SAML Assertion Help Modal -->
<div
id="samlHelpModal"
class="modal-overlay"
role="dialog"
aria-modal="true"
aria-labelledby="samlHelpModalTitle"
onclick="if(event.target === event.currentTarget) closeModal('samlHelpModal')"
>
<div class="modal">
<div class="modal-header">
<h2 id="samlHelpModalTitle">
<span aria-hidden="true">🎫</span> SAML Assertion Fields
</h2>
<button
class="modal-close"
aria-label="Close modal"
onclick="closeModal('samlHelpModal')"
>
×
</button>
</div>
<div class="modal-body">
<table class="field-ref-table">
<thead>
<tr>
<th>Field</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>NameID Format</code></td>
<td>
The format/type of the user identifier. Common formats
include
<code>emailAddress</code>, <code>persistent</code> (opaque
ID), and <code>transient</code> (session-specific ID).
</td>
</tr>
<tr>
<td><code>NameID Value</code></td>
<td>
The unique identifier for the authenticated user. This is
the value the Service Provider uses to identify the user
(e.g., email address or username).
</td>
</tr>
<tr>
<td><code>Issuer</code></td>
<td>
The SAML Identity Provider (IdP) that issued this assertion.
Usually the IdP's entity ID or URL.
</td>
</tr>
<tr>
<td><code>Destination</code></td>
<td>
The URL where this SAML response should be delivered —
typically the Service Provider's Assertion Consumer Service
(ACS) URL.
</td>
</tr>
<tr>
<td><code>Not Before</code></td>
<td>
The time at which this assertion becomes valid. The
assertion cannot be used before this time. Shows
<span style="color: var(--color-warning-text)"
>warning</span
>
if not yet valid.
</td>
</tr>
<tr>
<td><code>Auth Instant</code></td>
<td>
The exact moment the user authenticated with the IdP (e.g.,
entered their password). Useful for determining session
freshness.
</td>
</tr>
<tr>
<td><code>Not On Or After</code></td>
<td>
The expiry time — the assertion cannot be used on or after
this time. Shows
<span style="color: var(--color-error-text)">EXPIRED</span>
if past this date.
</td>
</tr>
<tr>
<td><code>Session Expires</code></td>
<td>
The time when the SSO session at the IdP expires
(SessionNotOnOrAfter). This may differ from assertion expiry
— shows how long the user's IdP session remains valid.
</td>
</tr>
<tr>
<td><code>Status</code></td>
<td>
Whether the SAML authentication was successful.
<code>Success</code> means authentication succeeded; other
values indicate errors.
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- SAML Attributes Help Modal -->
<div
id="attrHelpModal"
class="modal-overlay"
role="dialog"
aria-modal="true"
aria-labelledby="attrHelpModalTitle"
onclick="if(event.target === event.currentTarget) closeModal('attrHelpModal')"
>
<div class="modal">
<div class="modal-header">
<h2 id="attrHelpModalTitle">
<span aria-hidden="true">🏷️</span> SAML Attributes
</h2>
<button
class="modal-close"
aria-label="Close modal"
onclick="closeModal('attrHelpModal')"
>
×
</button>
</div>
<div class="modal-body">
<p style="margin: 0 0 12px 0">
SAML attributes are additional user information passed from the
Identity Provider to the Service Provider. Common attributes
include:
</p>
<table class="field-ref-table">
<thead>
<tr>
<th>Attribute</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>email</code></td>
<td>The user's email address.</td>
</tr>
<tr>
<td><code>firstName</code> / <code>givenName</code></td>
<td>The user's first/given name.</td>
</tr>
<tr>
<td><code>lastName</code> / <code>surname</code></td>
<td>The user's last name/surname.</td>
</tr>
<tr>
<td><code>displayName</code></td>
<td>The user's display name (often full name).</td>
</tr>
<tr>
<td><code>groups</code> / <code>memberOf</code></td>
<td>
Group memberships for the user, often used for role-based
access control.
</td>
</tr>
<tr>
<td><code>department</code></td>
<td>The user's department within the organisation.</td>
</tr>
</tbody>
</table>
<p
style="
margin: 12px 0 0 0;
font-size: 13px;
color: var(--color-text-secondary);
"
>
Note: Actual attributes vary depending on IdP configuration and
what the SP has requested.
</p>
</div>
</div>
</div>
<div class="input-section">
<label for="samlInput">Paste Base64-encoded SAML Response:</label>
<textarea
id="samlInput"
placeholder="PD94bWwgdmVyc2lvbj0iMS4wIi..."
></textarea>
<div style="margin-top: 12px">
<button onclick="decode()">Decode</button>
<button class="secondary" onclick="clearAll()">Clear</button>
</div>
</div>
<div id="error" role="alert" style="display: none"></div>
<div id="results" class="results">
<div class="section" id="rawXmlSection" style="display: none">
<div class="section-header">
<span aria-hidden="true">📄</span> Raw XML
</div>
<div class="section-body">
<details class="xml-details">
<summary>View decoded SAML Response XML</summary>
<div class="xml-container">
<button
class="copy-btn"
id="copyBtn"
aria-label="Copy XML to clipboard"
>
<i class="fa-regular fa-copy" aria-hidden="true"></i> Copy
</button>
<span
id="copyStatus"
class="visually-hidden"
aria-live="polite"