Hi all,
is there any difference in using one of the following approaches to validate a user role in a microservice API endpoint?
@PreAuthorize("hasRole('ROLE_INVENTORY_READ')")
@RolesAllowed( Roles.ROLE_INVENTORY_READ )
The 1st option is shared in the documentation, but the 2nd seems to be simpler.
Regards, Kai