Grails Acegi manual login
问题 Is there a way to do that without using a POST request to "j_spring_security_check"? 回答1: I needed the same thing (in my case I wanted to log in a user after they created a new account), so I dug around in the generated RegistrationService and found this is how it is done: import org.springframework.security.providers.UsernamePasswordAuthenticationToken as AuthToken import org.springframework.security.context.SecurityContextHolder as SCH class UserService { /** The authentication provider. */