| 1 |
<!doctype html> |
| 2 |
<html lang="en"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Security-Policy" |
| 5 |
content="default-src 'none'; style-src 'self'; img-src 'self'; connect-src 'self'; script-src 'self' 'sha256-7SYgPploBR3v25GCGZqhzo+r1EWDQ6bvZ+mn7tzpxOw='"> |
| 6 |
|
| 7 |
<meta charset="UTF-8"> |
| 8 |
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> |
| 9 |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> |
| 10 |
<title>OpenVPN SSO Login</title> |
| 11 |
<link rel="stylesheet" href="../assets/style.css"> |
| 12 |
<link rel="icon" href="../assets/favicon.svg" sizes="192x192"/> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<main> |
| 16 |
<h1 id="title" data-i18n>{{ .title }}</h1> |
| 17 |
<section> |
| 18 |
<h2 id="message" data-i18n>{{ .message }}</h2> |
| 19 |
{{- if .clientConfigProfiles }} |
| 20 |
<div class="profile-buttons"> |
| 21 |
<form method="POST" action="./profile-submit" class="profile-form"> |
| 22 |
<input type="hidden" name="token" value="{{ .token }}"> |
| 23 |
{{- range .clientConfigProfiles }} |
| 24 |
<input class="profile-button" type="submit" name="profile" value="{{ . }}"> |
| 25 |
{{- end }} |
| 26 |
</form> |
| 27 |
</div> |
| 28 |
{{- end }} |
| 29 |
</section> |
| 30 |
</main> |
| 31 |
{{- if .errorID }} |
| 32 |
<div id="errorID"><span data-i18n>Error ID</span>: {{ .errorID }}</div> |
| 33 |
{{- end }} |
| 34 |
<script src="../assets/i18n.js"></script> |
| 35 |
{{- if not .errorID }}<script>setTimeout(window.close,10000)</script>{{ end }} |
| 36 |
</body> |
| 37 |
</html> |