mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Adds authorization roles administrator dashboard
This commit is contained in:
1 parent
290af03c83
commit
1df31515fb
191 files changed
+6189
-806
No files matched your search
+1
-3
@@ -4,7 +4,6 @@ using Lumina.Presentation.Web.Common.Api;
|
||||
using Lumina.Presentation.Web.Common.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Exceptions;
|
||||
using Lumina.Presentation.Web.Common.Filters.AuthorizationFilters;
|
||||
using Lumina.Presentation.Web.Common.Filters.ExceptionFilters;
|
||||
using Lumina.Presentation.Web.Common.MiddlewareFilters;
|
||||
using Lumina.Presentation.Web.Common.Models.Authorization;
|
||||
using Lumina.Presentation.Web.Common.Security;
|
||||
@@ -49,7 +48,7 @@ public static class PresentationWebLayerServices
|
||||
{
|
||||
services.AddControllersWithViews(mvcOptions =>
|
||||
{
|
||||
mvcOptions.Filters.Add<ApiExceptionFilter>();
|
||||
//mvcOptions.Filters.Add<ApiExceptionFilter>();
|
||||
mvcOptions.Filters.Add(new MiddlewareFilterAttribute(typeof(LocalizationPipeline))); // add localization middleware filter
|
||||
})
|
||||
.AddViewLocalization(LanguageViewLocationExpanderFormat.Suffix)
|
||||
@@ -216,7 +215,6 @@ public static class PresentationWebLayerServices
|
||||
// enable access to the current HTTP context in non-controller classes
|
||||
services.AddHttpContextAccessor();
|
||||
|
||||
services.AddScoped<ApiExceptionFilter>();
|
||||
services.AddScoped<IAuthorizationHandler, InitializationHandler>();
|
||||
services.AddScoped<Authorization.IAuthorizationService, AuthorizationService>();
|
||||
services.AddSingleton<ICryptographyService, CryptographyService>();
|
||||
|
||||
Reference in new issue
Block a user