Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
-
None
Description
Currently the AuthorizingAnnotationHandlers often perform an if-check to see if the Subject has roles or permissions, and if not, throws an UnauthorizedException. The Subject API already has assertion methods (checkRoles, checkPermission, etc) that correctly throw an UnauthenticationException if an authorization check is not possible. Those methods should be used in the AnnotationHandler implementations instead.