-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsso.html
60 lines (51 loc) · 2.19 KB
/
sso.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE HTML>
<html>
<head>
<title>SSLSignature Demo SSO</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="ssls.accountId" content="5995a3c9-678b-4338-a674-362af68b9ef9" />
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
</head>
<script>
// Fired after validating JWT on page onLoad process, or after a successful identification
function onIdentification(operation){
$( "#title" ).html("Welcome "+operation.name + "("+operation.eIdentifier+")");
$( "#token" ).html("JWT");
$( "#body" ).val(JSON.stringify(operation, null, '\t'));
$( "#body" ).show();
}
//Fired when sso is fully loaded
function onLoad(){
}
//Fired onLogout
function onLogout(){
console.log("[PAGE] logout");
$( "#title" ).html("Welcome!! ");
$( "#token" ).html("No identification token (JWT) available");
$( "#body" ).hide();
}
</script>
<body>
<div class="jumbotron">
<div class="container">
<h1>SSLSignature SingleSignOn Demo</h1>
<p>Multidomain Single Sign On with Json Web Token (JWT)</p>
</div>
</div>
<section id="main">
<div class="container">
<h2 id="title">Welcome!!</h2>
<p id="token">No identification token (JWT) available</p>
<textarea id="body" rows=10 disabled class="form-control" style="min-width: 100%"></textarea>
<hr/>
<a type="button" class="btn btn-success" aria-label="Left Align" href="jwtcreator.html">JWT creator</a>
<a type="button" class="btn btn-primary" aria-label="Left Align" href="login.html">Identify</a>
<button type="button" class="btn btn-danger" aria-label="Left Align" onclick="sslssso.logout();"><span class="glyphicon glyphicon-off" aria-hidden="true"></span> Logout</button>
</div>
</section>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<!--SSO--><script src="https://produccion.sslsignature.com/sslsignature/resources/js/sslssso.js"></script><!--SSO-->
</body>
</html>