summaryrefslogtreecommitdiffstats
path: root/templates/complete_saml_extension_body.html
blob: 0c99ecbdc013529faabf132c3557bb309418ec9b (plain)
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
{{define "complete_saml_extension_body"}}

<html>
    <head>
        <script>
            document.addEventListener("DOMContentLoaded", function(event) {
                var extensionId = {{.ExtensionId}};

                if (!extensionId) {
                    return;
                }

                chrome.runtime.sendMessage(
                    extensionId,
                    {
                        value: {{.Token}},
                        error: {{.Error}}
                    },
                    function(response) {
                    }
                );
            });
        </script>
    </head>
    <body>
        Login Successful
    </body>
</html>

{{end}}