1
13693261870
2022-09-16 58d012f11dd34564d81b4eb3a6099eb689876597
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
<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="layout">
 
<head>
    <title th:text="#{screen.logout.header}"></title>
 
    <script th:inline="javascript">
        /*<![CDATA[*/
        function redirectToApp() {
            window.location = /*[[${logoutRedirectUrl}]]*/ ;
        }
        
        function handleCallback(index, status) {
            if (status == 200) {
                $("#service" + index).addClass("fa fa-check")
                $("#service" + index).prop('title', 'Logout request was successfully received.');
            } else {
                $("#service" + index).addClass("fa fa-error")
                $("#service" + index).prop('title', 'Logout notification could not be sent.');
            }
        }
        /*]]>*/
    </script>
</head>
 
<body id="cas">
<div layout:fragment="content">
    <div class="alert alert-success">
        <h2 th:utext="#{screen.logout.header}"/>
        <p th:utext="#{screen.logout.fc.success}"/>
        <br/><br/>
        <div>
            <ol start="a">
                <li th:each="entry,iterStat : ${logoutUrls}">
                    <script type="text/javascript" th:inline="javascript">
                        
                        $.ajax({
                            url:/*[[${entry.key.logoutUrl.toExternalForm()}]]*/,
                            dataType: 'jsonp',
                            async: true,
                            contentType: /*[[${entry.value.contentType}]]*/
                            , data: /*[[${entry.value.message}]]*/
                            , success: function (data) {
                                var index = /*[[${iterStat.index}]]*/;
                                handleCallback(index, 200);
                            },
                            error: function (err, textStatus, errorThrown) {
                                var index = /*[[${iterStat.index}]]*/;
                                handleCallback(index, err.status);
                            }
                        });
                    </script>
                    <p>
                        <i data-toggle="tooltip" data-placement="top" th:id="${'service'+iterStat.index}"/> 
                        <kbd th:text="${entry.key.service}"/>
                    </p>
                </li>
            </ol>
 
            
        </div>
        <p th:utext="#{screen.logout.security}"/>
        <br/>
        <input type="button" th:if="${logoutRedirectUrl}"
                class="btn btn-primary btn-success" onclick="redirectToApp();"
                th:value="${'Go to ' + logoutRedirectUrl}"/>
 
    </div>
</div>
</body>
</html>