I\'m new at spring framework. I\'m creating a login page for my webapp and I want the user to login before any action on the app. If the user enters good credentials everything
If anyone comes here who is having this problem in Grails Spring security. You can now use the following-
import grails.plugin.springsecurity.SpringSecurityUtils;
Now use SpringSecurityUtils.SPRING_SECURITY_LAST_USERNAME_KEY this will work and is not deprecated.
SpringSecurityUtils.SPRING_SECURITY_LAST_USERNAME_KEY