-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
29 lines (28 loc) · 991 Bytes
/
login.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>UID2 Publisher Standard Integration Example Login Result</title>
<link rel="stylesheet" type="text/css" href="/stylesheets/app.css" />
<link rel="shortcut icon" href="/images/favicon.png" />
<script src="<%- uid2BaseUrl %>/static/js/uid2-sdk-2.0.0.js"></script>
<script>
function onUid2IdentityUpdated(state) {
// can automatically redirect user to index page here
}
__uid2.init({
callback: onUid2IdentityUpdated,
baseUrl: "<%- uid2BaseUrl %>",
identity: <%- JSON.stringify(identity) %>
});
</script>
</head>
<body>
<%- include('intro.html'); -%>
<p class="message">Login completed</p>
<p>UID2 identity:</p>
<pre><%- JSON.stringify(identity, null, 2) %></pre>
<p><a href="/">Back to the main page</a></p>
<p>Normally user would be redirected automatically, but this example demonstrates one way UID2 login could be handled.</p>
</body>
</html>