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
The authorisation system I built ages ago clashes with our current structure. For example, UserTypes (in Authorization/UserTypes.cs) should be deprecated in favour of UserRole (in Models/Entities/User.cs). This affects a few things, including the authorisation policy registration in Program.cs and our middleware override, UserTypeAuthorizationHandler. At the very least, we should swap calls to UserTypes to UserRole instead, and potentially rethink how we handle authorisation of endpoints.
Affected Functionality
Authorisation
Other Relevant Issues
N/A
The text was updated successfully, but these errors were encountered:
The authorisation system I built ages ago clashes with our current structure. For example,
UserTypes
(inAuthorization/UserTypes.cs
) should be deprecated in favour ofUserRole
(inModels/Entities/User.cs
). This affects a few things, including the authorisation policy registration inProgram.cs
and our middleware override,UserTypeAuthorizationHandler
. At the very least, we should swap calls toUserTypes
toUserRole
instead, and potentially rethink how we handle authorisation of endpoints.Affected Functionality
Other Relevant Issues
N/A
The text was updated successfully, but these errors were encountered: