forked from ibm-cloud-security/appid-serversdk-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser-app-sample.html
39 lines (34 loc) · 1.41 KB
/
browser-app-sample.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>WebAppSample</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script src="browser-app-sample.js"></script>
</head>
<body class="container">
<h1>This is a browser-app-sample for appid-serversdk-nodejs</h1>
<h4>It demonstrates how to use appid-serversdk-nodejs in a browser web all (single-page-app).</h4>
Coming soon....
<!--
<hr/>
<div id="WhenNotAuthenticated" class="hideOnStartup">
<h3>You're not authenticated :(</h3>
</div>
<div id="WhenAuthenticated" class="hideOnStartup">
<h3>You're authenticated :)</h3>
<h3>Hello <span id="name"></span></h3>
<h4>Your userId is <span id="sub"></span></h4>
</p><img id="picture"/><br/><br/>
</div>
<div id="LoginButtons" class="hideOnStartup">
<a class="btn btn-primary" id="LoginAnonButton">Login anonymously</a>
<a class="btn btn-primary" id="LoginButton">Login</a>
<a class="btn btn-primary" id="Open protected page">Open protected page</a>
<a class="btn btn-primary" id="Logout">Logout</a>
</div>
-->
</body>
</html>