aboutsummaryrefslogtreecommitdiff
path: root/VPNAuth.Server
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-04-20 16:47:22 +0200
committerTim <contact@bytim.eu>2025-04-20 16:47:22 +0200
commitd7b87b1d78941c15fd9d967cc73998800487f968 (patch)
treee1f03b7076adff22b62740210c8d45f895b8fb4b /VPNAuth.Server
parent6a9657a10dc5ef3c4dfddf222284eec6c933ac83 (diff)
downloadVPNAuth-d7b87b1d78941c15fd9d967cc73998800487f968.tar.xz
VPNAuth-d7b87b1d78941c15fd9d967cc73998800487f968.zip
Show requested scopes on auth page
Diffstat (limited to 'VPNAuth.Server')
-rw-r--r--VPNAuth.Server/Pages/Auth.cshtml8
1 files changed, 8 insertions, 0 deletions
diff --git a/VPNAuth.Server/Pages/Auth.cshtml b/VPNAuth.Server/Pages/Auth.cshtml
index 5ac8efe..9017445 100644
--- a/VPNAuth.Server/Pages/Auth.cshtml
+++ b/VPNAuth.Server/Pages/Auth.cshtml
@@ -20,6 +20,14 @@
<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;">
+ @foreach (var scope in Model.RequestEntry!.Entity.Scopes)
+ {
+ <li>@scope</li>
+ }
+ </ul>
+ <br/>
<p>You are logged in as <i>@Model.User?.Username</i>.</p>
</div>
}