mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Migrate server auth to IdentityServer
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user