Spring security @notation for IS_AUTHENTICATED_FULLY?
Posted
by wuntee
on Stack Overflow
See other posts from Stack Overflow
or by wuntee
Published on 2010-03-26T22:33:28Z
Indexed on
2010/03/27
10:53 UTC
Read the original article
Hit count: 258
spring-security
I am simply trying to allow a user access to a method if they are authenticated, but nothing I am doing seems to work. Is there a way to just check if the user has been authenticated? The following still denies the user even when authenticated... Is there a built in role for an authenticated user?
@RequestMapping("/secure")
@PreAuthorize("hasRole('IS_AUTHENTICATED_FULLY')")
public String secure(ModelMap map){
return("secure");
}
© Stack Overflow or respective owner