Gets cookie authentication actually working along with session validation

This commit is contained in:
Shannon
2020-06-02 17:48:08 +10:00
parent 22c842f2e5
commit 670d62a2dc
21 changed files with 58 additions and 245 deletions

View File

@@ -72,6 +72,11 @@ namespace Umbraco.Extensions
{
app.UseMiddleware<UmbracoRequestMiddleware>();
app.UseMiddleware<MiniProfilerMiddleware>();
// TODO: Both of these need to be done before any endpoints but after UmbracoRequestMiddleware
// because they rely on an UmbracoContext. But should they be here?
app.UseAuthentication();
app.UseAuthorization();
}
return app;