aboutsummaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Pages/Auth.cshtml
diff options
context:
space:
mode:
Diffstat (limited to 'VPNAuth.Server/Pages/Auth.cshtml')
-rw-r--r--VPNAuth.Server/Pages/Auth.cshtml23
1 files changed, 15 insertions, 8 deletions
diff --git a/VPNAuth.Server/Pages/Auth.cshtml b/VPNAuth.Server/Pages/Auth.cshtml
index 9017445..a402236 100644
--- a/VPNAuth.Server/Pages/Auth.cshtml
+++ b/VPNAuth.Server/Pages/Auth.cshtml
@@ -10,30 +10,37 @@
<html>
<head>
<title>VPNAuth - Auth</title>
+ <link rel="stylesheet" href="/static/style.css">
</head>
-<body style="text-align: center;">
+<body>
<h1>Authorization</h1>
- <h2>VPNAuth</h2>
@if (Model.ValidRequest)
{
<div>
- <p>Do you want to log into <i>@Request.Query["client_id"]</i>?</p>
- <button onclick="window.location = '/accept-auth/@Model.RequestEntry?.Entity.Id'">Yes</button>
- <br/>
- <p>Requested Scopes:</p>
- <ul style="list-style-position: inside;">
+ <p>Do you want to log into <i>@Request.Query["client_id"]</i> as user <i>@Model.User?.Username</i>?</p>
+ <p>Requested scopes:</p>
+ <ul>
@foreach (var scope in Model.RequestEntry!.Entity.Scopes)
{
<li>@scope</li>
}
</ul>
+ <button class="button primary"
+ onclick="window.location = '/accept-auth/@Model.RequestEntry?.Entity.Id'">Yes
+ </button>
+ <button class="button error"
+ onclick="window.location = '@(Model.Config.FindApp(Request.Query["client_id"]!)!.RedirectUri
+ + "?error=access_denied")'">No</button>
<br/>
- <p>You are logged in as <i>@Model.User?.Username</i>.</p>
</div>
}
else
{
<b>Invalid request.</b>
}
+
+ <footer>
+ <p style="margin-top: 5em;"><a target="_blank" href="https://bytim.eu/projects/VPNAuth/">VPNAuth</a> by Tim</p>
+ </footer>
</body>
</html>