You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Authorization: Add [Authorize] flag to restricted endpoints #96
Proper authorization is critical for ensuring that only authenticated users can access protected resources and perform sensitive operations. Without it, unauthorized users could potentially read, modify, or delete data that should be secured.
Currently, very few endpoints that should be restricted are actually protected by authorization. This creates a security vulnerability and weakens trust in the system.
Suggestion
Add the [Authorize] attribute to all endpoints except:
Any tests that tests those endpoints would also need to be adjusted to have a valid token with an user with appropriate permissions for the action, e.g. if the test is intended to fail it should be for example a student trying to do a teacher action.
Activity
otvegg commentedon Sep 18, 2025
Any tests that tests those endpoints would also need to be adjusted to have a valid token with an user with appropriate permissions for the action, e.g. if the test is intended to fail it should be for example a student trying to do a teacher action.
Merge pull request #113 from boolean-uk/reduan-azouaghe-96-authorizat…