active directory authentication, full mfa implementation, vpn generation

This commit is contained in:
2024-05-20 16:10:32 -07:00
parent 49962ade44
commit a64e527fac
16 changed files with 1084 additions and 19 deletions

BIN
templates/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -8,6 +8,9 @@
<body>
<h1>{{ currSecret }}</h1>
<h1>{{ code }}</h1>
<a href="{{ uri }}">
<button>Add to Authenticator App</button>
</a>
<a href="{{ homeurl }}">
<button>Back home</button>
</a>

18
templates/changepw.html Normal file
View File

@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accounts - Change PW</title>
</head>
<body>
{{ get_flashed_messages() }}
{{ form.errors }}
<form method="POST">
<label>New Password{{ form.newpw() }}</label>
<label>Confirm Password{{ form.conpw() }}</label>
{{ form.submit() }}
</form>
</body>
</html>

View File

@@ -9,11 +9,40 @@
<h1>Welcome, {{ current_user.data.givenName }}</h1>
<h2>Email: {{ current_user.data.mail }}</h2>
<h2>{{ current_user.dn }}</h2>
MFA status:<br>
<a href="{{ mfaurl }}">
<button>MFA</button>
{{ mfastatus }}
</a>
<a href="http://accounts.bbrunson.com">
<style>
.styled-box {
width: 300px;
height: 150px;
background-color: #3498db;
color: #fff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
text-align: center;
padding: 20px;
}
.styled-box:hover {
background-color: #2980b9;
}
</style>
<a href="{{ mfaurl }}">
<div class="styled-box">
<h2>MFA Status:</h2>
<p>{{ mfastatus }}</p>
</div>
</a>
<a href="{{ changepwurl }}">
<button>Change Password</button>
</a>
<a href="{{ vpnurl }}">
<button>VPN</button>
</a>
<a href="{{ logouturl }}">
<button>Logout</button>
</a>
</body>
</html>

910
templates/people.html Normal file

File diff suppressed because one or more lines are too long

17
templates/vpn.html Normal file
View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Accounts - VPN</title>
</head>
<body>
<form action="/vpn?dev=ios" method="post">
<button type="submit">Download VPN for iOS</button>
</form>
<form action="/vpn?dev=mac" method="post">
<button type="submit">Download VPN for Mac</button>
</form>
</body>
</html>