Migrate server auth to IdentityServer

This commit is contained in:
Alexa
2026-06-30 13:27:55 +03:00
parent 3e4d618aa7
commit 2e7b39c2cd
13 changed files with 960 additions and 290 deletions
@@ -87,6 +87,10 @@ public static class MiddlewarePipelineExtensions
// calls (login, photon custom auth) are gated too.
app.UseMiddleware<VersionDetectionMiddleware>();
app.UseMiddleware<IdentityServerTokenResponseMiddleware>();
app.UseMiddleware<IdentityServerLegacyTokenRequestMiddleware>();
app.UseIdentityServer();
app.UseAuthentication();
app.UseAuthorization();
// Sits between auth and the controllers — by this point ctx.User has