jwt-security-example
jwt-security-example copied to clipboard
How roles will work here?
I have added @PreAuthorize("hasAnyRole('USER')") in HelloController.
Even now if i create token with any user role, still hello controller is returning the result.
Hey were you able to figure it out?