forked from mulbc/vaultPass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.html
102 lines (91 loc) · 2.73 KB
/
options.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Vault for Chrome: Settings</title>
<script
type="application/javascript"
src="browser-polyfill.min.js"
></script>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="header">
<div class="header__container">
<h1 class="h1 title">VaultPass</h1>
<nav role="navigation" class="menu" aria-label="Main Menu">
<ul class="menu__links">
<li>
<a href="/popup.html" class="link link--alt" aria-current="page"
>Keys
</a>
</li>
<li>
<a href="/options.html" class="link link--alt link--current"
>Options</a
>
</li>
</ul>
</nav>
</div>
</header>
<main class="main">
<div id="notify"></div>
<div id="login">
<label class="label">
Vault server URL:
<input type="text" class="input" name="server" id="serverBox" />
</label>
<label class="label">
Username:
<input type="text" class="input" name="login" id="loginBox" />
</label>
<label class="label">
Password:
<input type="password" class="input" name="pass" id="passBox" />
</label>
<label class="label">
Auth Method:
<input
type="text"
list="mounts"
name="authMount"
id="authMount"
class="input"
/>
<datalist id="mounts">
<option>ldap</option>
<option>userpass</option>
<option>radius</option>
<option>okta</option>
</datalist>
</label>
<label class="label">
KV Store:
<input type="text" class="input" name="store" id="storeBox" placeholder="Path to the KV store within Vault" value="secret/vaultPass"/>
</label>
<input
type="submit"
class="button button--primary"
value="Login to Vault"
id="authButton"
/>
<input
type="submit"
class="button button--primary"
value="Get Token from Vault"
id="tokenGrabber"
/>
</div>
<div>
<ul id="secretList" class="list gutter"></ul>
</div>
<div id="logout" style="display: none">
<input type="submit" class="button" value="Logout" id="logoutButton" />
</div>
</main>
<script src="Notify.js"></script>
<script src="common.js"></script>
<script src="options.js"></script>
</body>
</html>