drinkrate/DrinkRateAPI
martinshoob b59fef222f Implement admin-only authorization policy
Adds an authorization policy to restrict access to admin-only endpoints.
Creates an `AdminOnlyRequirement` and `AdminOnlyHandler` to check if a user has admin privileges.
Applies the "AdminOnly" policy to the AdminController to secure admin functionalities.
Modifies the endpoint for changing user admin status to include the user ID in the route.
2025-08-10 18:07:34 +02:00
..
ApiModels/UserProfile Implement admin-only authorization policy 2025-08-10 18:07:34 +02:00
AuthorizationPolicies Implement admin-only authorization policy 2025-08-10 18:07:34 +02:00
Contexts Add EF object history 2025-08-09 19:05:02 +02:00
Controllers Implement admin-only authorization policy 2025-08-10 18:07:34 +02:00
DbEntities Add EF object history 2025-08-09 19:05:02 +02:00
Exceptions Add user authorization service 2025-08-10 11:20:18 +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 Refactor admin endpoint and logic 2025-08-10 16:23: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 Implement admin-only authorization policy 2025-08-10 18:07:34 +02:00