With the grails spring security plugin, is it possible to login a user by passing their user name and password into a method e.g. logon(username, password)? If so, how can I implement it.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do you want to do this? The way Spring Security is implemented is by a filter chain, and the plugin helps configure that. There are multiple steps involved in authenticating a user and checking that the user is authorized to access various urls. The controller is there as a helper, but the real work is done in the filters. You can customize how it works, but it’s not as simple as routing the logic through a controller.