-
Notifications
You must be signed in to change notification settings - Fork 9
/
tool.html
115 lines (111 loc) · 5.18 KB
/
tool.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GENI Deluxe Tool</title>
<link rel="shortcut icon" href="favicon.ico"/>
<link rel="stylesheet" style="text/css"
href="lib/amelia.min.css">
<script src="lib/jquery-1.8.2.min.js"></script>
<script src="geni-auth.js"></script>
<script>
genilib.trustedHost = 'http://localhost:8080';
genilib.trustedPath = '/index.html';
var myId = "urn:publicid:IDN+jonlab.testbed.emulab.net+user+duerig";
var myCert =
/*
"-----BEGIN CERTIFICATE-----\n\
MIIEPDCCA6WgAwIBAgICBAgwDQYJKoZIhvcNAQEEBQAwgeMxCzAJBgNVBAYTAlVT\
MQ0wCwYDVQQIEwRVdGFoMRswGQYDVQQHExJTYWx0IExha2UgU2ltIENpdHkxITAf\
BgNVBAoTGFV0YWggTmV0d29yayBTZWNvbmQgTGlmZTEeMBwGA1UECxMVQ2VydGlm\
aWNhdGUgQXV0aG9yaXR5MSkwJwYDVQQDEyBteWJvc3Muam9ubGFiLnRlc3RiZWQu\
ZW11bGFiLm5ldDE6MDgGCSqGSIb3DQEJARYrdGVzdGJlZC1vcHNAbXlvcHMuam9u\
bGFiLnRlc3RiZWQuZW11bGFiLm5ldDAeFw0xMzA4MDIxOTQxMTdaFw0xNjA0Mjgx\
OTQxMTdaMIGwMQswCQYDVQQGEwJVUzENMAsGA1UECBMEVXRhaDEhMB8GA1UEChMY\
VXRhaCBOZXR3b3JrIFNlY29uZCBMa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1aWQ6M2MwZDIwNWYtZmJhYi0xMWUy\
LWIwMDEtMDAyNGU4NzkyN2ViMGoGCCsGAQUFBwEBBF4wXDBaBhRpg8yTgKiYzKjH\
vbGngICqrteKG4ZCaHR0cHM6Ly9teWJvc3Muam9ubGFiLnRlc3RiZWQuZW11bGFi\
Lm5ldDoxMjM2OS9wcm90b2dlbmkveG1scnBjL3NhMA0GCSqGSIb3DQEBBAUAA4GB\
AE5QonG9zBaO7uOKmNOcmUvYO2llbjXOv2LzDromDlrip7fzhEmNhLmDOZsyaEgM\
xl+W1ShFYeo1MHXr7aDYjXuoTfLHQmdE8Ojj0KttkmNsWeiRch6SRBaou9o7uu1I\
PepJ4EWcqNd14zza7Wmbg8K6atEOEl4BxxbdVYteh0Q3\n\
-----END CERTIFICATE-----";
function initialize()
{
$('#need-credential').show();
$('#have-credential').hide();
$('#authorize').click(function (event) {
event.preventDefault();
genilib.authorize(myId, myCert, complete);
return false;
});
}
function complete(credential)
{
$('#need-credential').hide();
$('#have-credential').show();
$('#credential').val(credential);
}
$(document).ready(initialize);
</script>
</head>
<body>
<div class="container">
<div class="hero-unit" id="need-credential">
<h1>GENI Deluxe Tool</h1>
<p>Welcome to the GENI Deluxe Tool. This tool will use your credential to talk to GENI Aggregate Managers on your behalf. We have many great features as well.</p>
<p>Just <button id="authorize" class="btn btn-primary">Authorize</button> to get started.</p>
</div>
<div class="hero-unit" id="have-credential">
<h1>GENI Deluxe Tool</h1>
<h3>Authorization Complete</h3>
<p>Congratulations! Your authorization is complete. Please choose from the menu of options below.</p>
<form onsubmit="return false;">
<fieldset>
<button class="btn">Create Slice</button>
<button class="btn">Allocate Resources</button>
<button class="btn">Release Zombies</button>
<button class="btn">Deploy Orbiting Brain Lasers</button>
</fieldset>
<br>
<textarea id="credential" rows="20" class="input-xxlarge">Credential goes here</textarea>
</form>
</div>
</div>
</body>
</html>