aboutsummaryrefslogtreecommitdiffstats
path: root/ll-auth-binding/htdocs/auth.html
blob: ac48ff9afae9288248cdf262708e97b8d911740c (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
31
32
33
34
35
36
37
38
<html>
    <head>
        <title>ll-auth-binding test</title>
        <script type="text/javascript" src="AFB-websock.js"></script>
        <script type="text/javascript" src="IdentityBinding.js"></script>
    </head>
    
    <body onload="init();">
        <h1>Identity Binding</h1>
        <button id="connected" onclick="init()">Binder WS Fail</button>
        <br>
        <ol>
            <!--
            <li><button onclick="callbinder('ll-auth','login', {})">login</button></li>
            <li><button onclick="callbinder('ll-auth','logout', {})">logout</button></li>
            -->
            <li><button onclick="callbinder('ll-auth','getuser', {})">get user</button></li>
        </ol>
        <br>
        <div>
        </div>
            <h2>User:</h2>
            <ol>
                <li>id: <span id="userid"></span></li>
                <li>device: <span id="device"></span></li>
            </ol>
            <div id="message" style="color:red;"></div>
        <br/>
        <div id="main" style="visibility:hidden">
            <h2>Debug: </h2>
            <ol>
                <li>Question <div id="question"></div></li>
                <li>Response <div id="output"></div></li>
                <li>Events: <div id="outevt"></div></li>
            </ol>
        </div>
    </body>
</html>