RoleAuthorizationMiddleware.cs
Extracts the user ID from JWT, checks the User Role associated with the ID, then return 401/403 based on permissions checks. (will be added to Program.cs via running app.UseMiddleware())
this code is reliant on my (ricky) middleware for JWT auth, I will let you know when my part is ready
PermissionAttribute.cs custom attribute
Allows for doing [Permission(requiredRoleLevel: 5)] attributes to be attached to controller methods for easy RBAC integrations.