I am trying to understand some Spring security code. I am new to Spring Security as well and I guess I am missing here something basic.
I have that annotation on one of the classes:
@Controller
@RequestMapping("/download-resource")
@PreAuthorize(value="hasRole('LINKS_ADMIN')")
public class DownloadResourcesController extends BaseHtmlController
{..}
I read about the @PreAuthorize
and it's logic.
I still couldnt understand from where Spring security retrieves that defined role string : 'LINKS_ADMIN'
. Where is it defined?
thanks, ray.