Simplifies and centralizes authorization for attributes, codes and views

This commit is contained in:
BinaryAlley committed 2024-12-09 09:09:48 +02:00
1 parent 8eb1b9f13c
commit 80f27eb24b
4 files changed
+157 -55

No files matched your search

@@ -218,6 +218,7 @@ public static class PresentationWebLayerServices
services.AddScoped<ApiExceptionFilter>();
services.AddScoped<IAuthorizationHandler, InitializationHandler>();
services.AddScoped<Authorization.IAuthorizationService, AuthorizationService>();
services.AddSingleton<ICryptographyService, CryptographyService>();
services.AddSingleton<IUrlService, UrlService>();
services.AddHybridCache(); // used for caching authorization roles, permissions and policies