aboutsummaryrefslogtreecommitdiff
path: root/VPNAuth.Server/Program.cs
diff options
context:
space:
mode:
authorTim <contact@bytim.eu>2025-04-26 20:45:22 +0200
committerTim <contact@bytim.eu>2025-04-26 20:45:22 +0200
commit076b193b1714383e83d8aa80253cddfd1d695b92 (patch)
tree31516e3fbd2871b24a1ff9570137b2086dc49544 /VPNAuth.Server/Program.cs
parentbcb59cc65ea5ef96f40f8837753d2b322cc07362 (diff)
downloadVPNAuth-076b193b1714383e83d8aa80253cddfd1d695b92.tar.xz
VPNAuth-076b193b1714383e83d8aa80253cddfd1d695b92.zip
Add oidc discovery endpoint
Diffstat (limited to 'VPNAuth.Server/Program.cs')
-rw-r--r--VPNAuth.Server/Program.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/VPNAuth.Server/Program.cs b/VPNAuth.Server/Program.cs
index e8e5d4f..067e61b 100644
--- a/VPNAuth.Server/Program.cs
+++ b/VPNAuth.Server/Program.cs
@@ -35,6 +35,7 @@ app.MapGet("/accept-auth/{id}", OAuth2.AcceptAuthHandler);
app.MapPost("/access-token", OAuth2.AccessTokenHandler);
app.MapPost("/user-info-settings", UserInterface.UserSettingsHandler);
app.Map("/user-info", Oidc.UserInfoHandler);
+app.MapGet("/.well-known/openid-configuration", Oidc.DiscoveryHandler);
app.MapStaticAssets();
app.MapRazorPages()