drinkrate/DrinkRateAPI
martinshoob 9ec9139f69 Enhance AdminOnly authorization policy
Refactor the AdminOnly authorization policy to handle cases where a user profile is not found.
Instead of throwing a NotFoundException, it now throws a ForbiddenException, ensuring a more appropriate response for unauthorized access attempts.
Also introduces PolicyConstants for policy names.
2025-08-11 19:47:12 +02:00
..
ApiModels/UserProfile Rename class 2025-08-11 07:46:14 +02:00
AuthorizationPolicies Enhance AdminOnly authorization policy 2025-08-11 19:47:12 +02:00
Contexts Add EF object history 2025-08-09 19:05:02 +02:00
Controllers Enhance AdminOnly authorization policy 2025-08-11 19:47:12 +02:00
DbEntities Add EF object history 2025-08-09 19:05:02 +02:00
Exceptions Add exception handling middleware 2025-08-11 18:36:12 +02:00
Migrations Add EF object history 2025-08-09 19:05:02 +02:00
Properties INIT 2025-08-08 23:28:03 +02:00
Services Handle not found user profile gracefully 2025-08-11 18:46:35 +02:00
appsettings.json Create base db migration 2025-08-09 14:54:45 +02:00
DrinkRateAPI.csproj Refactor admin endpoint and logic 2025-08-10 16:23:35 +02:00
DrinkRateAPI.http INIT 2025-08-08 23:28:03 +02:00
Program.cs Enhance AdminOnly authorization policy 2025-08-11 19:47:12 +02:00